public function XmlFileLoaderTest::testDocTypeIsNotAllowed

Same name in this branch
  1. 9.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\Routing\Tests\Loader\XmlFileLoaderTest::testDocTypeIsNotAllowed()
  2. 9.x drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php \Symfony\Component\DependencyInjection\Tests\Loader\XmlFileLoaderTest::testDocTypeIsNotAllowed()

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

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Loader/XmlFileLoaderTest.php, line 96

Class

XmlFileLoaderTest

Namespace

Symfony\Component\Routing\Tests\Loader

Code

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