Added close test

pull/6923/head
Philipp Holzer 4 years ago committed by Hypolite Petovan
parent f63956851b
commit fdb3b26eea
  1. 12
      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');
}
}

Loading…
Cancel
Save