You are here

public function QtFileLoaderTest::testLoadEmptyResource in Zircon Profile 8.0

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

File

vendor/symfony/translation/Tests/Loader/QtFileLoaderTest.php, line 60

Class

QtFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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