Added close test
This commit is contained in:
parent
f63956851b
commit
fdb3b26eea
|
@ -70,4 +70,16 @@ class SyslogLoggerTest extends AbstractLoggerTest
|
|||
$logger = new SyslogLoggerWrapper('test', $this->introspection, LogLevel::DEBUG, null, 'a string');
|
||||
$logger->emergency('not working');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the close() method
|
||||
*/
|
||||
public function testClose()
|
||||
{
|
||||
$logger = new SyslogLoggerWrapper('test', $this->introspection);
|
||||
$logger->emergency('test');
|
||||
$logger->close();
|
||||
// Reopened itself
|
||||
$logger->emergency('test');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue