public function FileResourceTest::testIsFresh

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Factory/Resource/FileResourceTest.php, line 18

Class

FileResourceTest

Namespace

Assetic\Test\Factory\Resource

Code

public function testIsFresh() {
  $resource = new FileResource(__FILE__);
  $this
    ->assertTrue($resource
    ->isFresh(time() + 5));
  $this
    ->assertFalse($resource
    ->isFresh(0));
}