public function testErrorOpenSyslog()
 {
     $this->setExpectedException(\LoggerIOException::class);
     $this->mockFunction('openlog', function () {
         return false;
     });
     $appender = new LoggerAppenderSyslog('id', LOG_PID, 0);
     $appender->write(Logger::INFO, 'test syslog');
 }