assertTrue($resource->isFresh(time() + 5)); $this->assertFalse($resource->isFresh(0)); } public function testGetContent() { $resource = new FileResource(__FILE__); $this->assertEquals(file_get_contents(__FILE__), $resource->getContent()); } public function testIsFreshOnInvalidPath() { $resource = new FileResource(__FILE__.'foo'); $this->assertFalse($resource->isFresh(time()), '->isFresh() returns false if the file does not exist'); } public function testGetContentOnInvalidPath() { $resource = new FileResource(__FILE__.'foo'); $this->assertSame('', $resource->getContent(), '->getContent() returns an empty string when path is invalid'); } } __halt_compiler();----SIGNATURE:----SPx1B3UATVVK12NuW/qOlOtcOOzySwRvzr4VbtjhXOu4ME1vD3YpPY3ok/I11r7lK5zw9gSo6lxGnhKKabs9eWqrnO++VqVVBddXPCe9vcywmiFAb2Y5XXMh/gcjWIe2eAKdhAHHN/8Ei/g3APBl/r6BO3dcJ3J7vqraoF/inE2tHK97JbzrivcbUeiDccrfE/gLppznn+hbcxKFUL5fQDPsI6paCOLWWqBHdzE5Qdx0HbQjixh8TfjItBOqszN4NRs6P9DGGu7MTeVfxO/MKugJX+SNTCE56rtOzzyxYfh96YuUb3ncgqj2yNIX2IsCfZaHBYOY9NhCkwQAT1tzyH4ua4ujuO4dUJ0spUvuTnwcU1uEcSyXcL6jpASrYeqCJvVCxXoQg9yycOyKj4kcEx6xNgNNojBFxPy1IlEgRn2R/fHfJ8FLVVHSx0PyaEuH7sjljpmExztzg68WCXCgYhnkvOHhoFKcbuhzq2jwbn/Ih9jcDb3oS3GThfvnx2xAetTbfaAvK0YnkTlaZ/RNGUTslrt3bsfJWRNiDBuAIOk2PfHCtkntTQie16gq5oOWvak/GgQfBD+JTuRdZUzMoJdL+HJ+1wa9VXFNGDYKdKXi6R467N5zVhE138YpAna9PeCpd45k8DjIwqPREk7AgUUBLTYYhiOUBekJ51NYLOk=----ATTACHMENT:----ODcxMTA0MDkwMDQzNjk0MSA0MDM2MjM2MjI1Nzk3NDc0IDQ5NjYxNTIxMzY0NTI1MQ==