You are here

public function XmlFileLoaderTest::testDocTypeIsNotAllowed in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/routing/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\XmlFileLoaderTest::testDocTypeIsNotAllowed()
  2. 8.0 vendor/symfony/dependency-injection/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\XmlFileLoaderTest::testDocTypeIsNotAllowed()
Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\XmlFileLoaderTest::testDocTypeIsNotAllowed()

@expectedException \InvalidArgumentException @expectedExceptionMessage Document types are not allowed.

File

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

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

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