From: Philipp Holzer Date: Mon, 4 Mar 2019 23:11:02 +0000 (+0100) Subject: Added close test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fdb3b26eea258de0c6355c2ceb4286f60b1ab4f8;p=friendica.git Added close test --- diff --git a/tests/src/Util/Logger/SyslogLoggerTest.php b/tests/src/Util/Logger/SyslogLoggerTest.php index fbd691d5eb..aee94e7fdf 100644 --- a/tests/src/Util/Logger/SyslogLoggerTest.php +++ b/tests/src/Util/Logger/SyslogLoggerTest.php @@ -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'); + } }