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