You are here

public function YamlFileLoaderTest::testLoadThrowsExceptionWithInvalidFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\YamlFileLoaderTest::testLoadThrowsExceptionWithInvalidFile()

@expectedException \InvalidArgumentException @dataProvider getPathsToInvalidFiles

File

vendor/symfony/routing/Tests/Loader/YamlFileLoaderTest.php, line 46

Class

YamlFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

public function testLoadThrowsExceptionWithInvalidFile($filePath) {
  $loader = new YamlFileLoader(new FileLocator(array(
    __DIR__ . '/../Fixtures',
  )));
  $loader
    ->load($filePath);
}