Added close test

This commit is contained in:
Philipp Holzer 2019-03-05 00:11:02 +01:00 committed by Hypolite Petovan
parent f63956851b
commit fdb3b26eea

View file

@ -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');
}
}