You are here

public function XmlFileLoaderTest::testLoadThrowsExceptionWithInvalidFile in Zircon Profile 8.0

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

@expectedException \InvalidArgumentException @dataProvider getPathsToInvalidFiles

File

vendor/symfony/routing/Tests/Loader/XmlFileLoaderTest.php, line 108

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

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