Ejemplo n.º 1
0
 /**
  * @covers Phossa\Logger\LogEntry::setTimestamp
  */
 public function testSetTimestamp()
 {
     $this->object->setTimestamp(10);
     $this->assertEquals(10, $this->object->getTimestamp());
 }
Ejemplo n.º 2
0
 private function logTimestamp(LogEntry $entry)
 {
     global $wgLang;
     $time = $wgLang->timeanddate(wfTimestamp(TS_MW, $entry->getTimestamp()), true);
     return htmlspecialchars($time);
 }