/** * Run tests to ensure the output is correct for set/getLastClock * * @return void */ public function testLastClock() { $clock = new Clock(); $lastClock = new \DateTime("4:30 pm", new \DateTimeZone("UTC")); $clock->setLastClock($lastClock); $this->assertEquals($lastClock->getTimestamp(), $clock->getLastClock()->getTimestamp()); }