You are here

public function XliffFileLoaderTest::testParseEmptyFile in Zircon Profile 8

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

File

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

Class

XliffFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testParseEmptyFile() {
  $loader = new XliffFileLoader();
  $resource = __DIR__ . '/../fixtures/empty.xlf';
  $this
    ->setExpectedException('Symfony\\Component\\Translation\\Exception\\InvalidResourceException', sprintf('Unable to load "%s":', $resource));
  $loader
    ->load($resource, 'en', 'domain1');
}