]> git.mxchange.org Git - friendica.git/commitdiff
Added close test
authorPhilipp Holzer <admin@philipp.info>
Mon, 4 Mar 2019 23:11:02 +0000 (00:11 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 03:13:27 +0000 (23:13 -0400)
tests/src/Util/Logger/SyslogLoggerTest.php

index fbd691d5eb0f1f23b481e424c19005b738332bee..aee94e7fdfbf66a069a9b879fb1b896453f9ce6e 100644 (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');
+       }
 }