You are here

public function XliffFileLoaderTest::testDocTypeIsNotAllowed in Plug 7

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

File

lib/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');
}