示例#1
0
 /**
  * @group ZF-9870
  */
 public function testLogWritesWithModifiedTimestampFormat()
 {
     $logger = new Logger($this->writer);
     $logger->setTimestampFormat('Y-m-d');
     $logger->debug('ZF-9870');
     rewind($this->log);
     $message = stream_get_contents($this->log);
     $this->assertEquals(date('Y-m-d'), substr($message, 0, 10));
 }