public function testIsFreshOnInvalidPath()
 {
     $resource = new FileResource(__FILE__ . 'foo');
     $this->assertFalse($resource->isFresh(time()), '->isFresh() returns false if the file does not exist');
 }
Beispiel #2
0
 public function testIsFresh()
 {
     $resource = new FileResource(__FILE__);
     $this->assertTrue($resource->isFresh(time() + 5));
     $this->assertFalse($resource->isFresh(0));
 }