You are here

public function MoFileLoaderTest::testLoadInvalidResource in Zircon Profile 8

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

@expectedException \Symfony\Component\Translation\Exception\InvalidResourceException

File

vendor/symfony/translation/Tests/Loader/MoFileLoaderTest.php, line 54

Class

MoFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testLoadInvalidResource() {
  $loader = new MoFileLoader();
  $resource = __DIR__ . '/../fixtures/empty.mo';
  $loader
    ->load($resource, 'en', 'domain1');
}