/** * Tests whether error() works as expected. * * @return void */ public function testError() { $logFile = new File(ABLERON_LOG_DIR . '/LogManagerTest-testError.log'); $logManager = new LogManager(new FileLogger($logFile)); $logManager->error('Error message with {placeholder}', array('placeholder' => 'replacement')); $this->assertStringMatchesFormat('%d-%d-%d %d:%d:%d ERROR Error message with replacement', $logFile->getContent()); }