From fdb3b26eea258de0c6355c2ceb4286f60b1ab4f8 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Tue, 5 Mar 2019 00:11:02 +0100 Subject: [PATCH] Added close test --- tests/src/Util/Logger/SyslogLoggerTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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'); + } } -- 2.39.5