mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:50:12 +00:00
Adding Logger Tests
This commit is contained in:
parent
aee348fa02
commit
f63956851b
3 changed files with 38 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue