You are here

public function MoFileLoaderTest::testLoadNonExistingResource in Zircon Profile 8.0

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

@expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException

File

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

Class

MoFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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