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