コード例 #1
0
 /**
  * Tests whether debug() works as expected.
  *
  * @return void
  */
 public function testDebug()
 {
     $logFile = new File(ABLERON_LOG_DIR . '/LogManagerTest-testDebug.log');
     $logManager = new LogManager(new FileLogger($logFile));
     $logManager->debug('Debug message with {placeholder}', array('placeholder' => 'replacement'));
     $this->assertStringMatchesFormat('%d-%d-%d %d:%d:%d DEBUG Debug message with replacement', $logFile->getContent());
 }