You are here

public function XliffFileLoaderTest::testDocTypeIsNotAllowed in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\XliffFileLoaderTest::testDocTypeIsNotAllowed()

@expectedException \Symfony\Component\Translation\Exception\InvalidResourceException @expectedExceptionMessage Document types are not allowed.

File

vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php, line 118

Class

XliffFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testDocTypeIsNotAllowed() {
  $loader = new XliffFileLoader();
  $loader
    ->load(__DIR__ . '/../fixtures/withdoctype.xlf', 'en', 'domain1');
}