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