Adding Logger Tests
This commit is contained in:
committed by
Hypolite Petovan
parent
aee348fa02
commit
f63956851b
@@ -59,4 +59,15 @@ class SyslogLoggerTest extends AbstractLoggerTest
|
||||
|
||||
$logger->log('NOPE', 'a test');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test when the logfacility is wrong (string)
|
||||
* @expectedException \UnexpectedValueException
|
||||
* @expectedExceptionMessageRegExp /Can\'t open syslog for ident ".*" and facility ".*": .* /
|
||||
*/
|
||||
public function testServerException()
|
||||
{
|
||||
$logger = new SyslogLoggerWrapper('test', $this->introspection, LogLevel::DEBUG, null, 'a string');
|
||||
$logger->emergency('not working');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user