public function modifiedTime() { if (file_exists($this->path)) { return filemtime($this->path); } return 0; }
public function testModifiedTimeExisting() { $target = new AssetTarget(__FILE__); $this->assertSame(filemtime(__FILE__), $target->modifiedTime()); }