public function DirectoryResourceTest::testInvalidDirectory

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Factory/Resource/DirectoryResourceTest.php, line 103

Class

DirectoryResourceTest

Namespace

Assetic\Test\Factory\Resource

Code

public function testInvalidDirectory() {
  $resource = new DirectoryResource(__DIR__ . 'foo');
  $this
    ->assertEquals(0, iterator_count($resource), 'works for non-existent directory');
}