Added close test

This commit is contained in:
Philipp Holzer 2019-03-05 00:11:02 +01:00
parent 42e9d90066
commit 0ac3b7091c
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 12 additions and 0 deletions

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