public function testBasicSetLastModifed() { $now = date('Y-m-d'); $o = new StaticFileModel(); $o->setLastModified($now); $this->assertEquals($now, $o->getLastModified()); }
public function testGetLastModifiedMatchesFilemtimeOfFile() { $o = new StaticFileModel(); $o->setFilePath(__FILE__); $this->assertEquals(date('Y-m-d G:i:s', filemtime(__FILE__)), $o->getLastModified()); }