You are here

public function JsonFileLoaderTest::testLoadNonExistingResource in Zircon Profile 8

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

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

File

vendor/symfony/translation/Tests/Loader/JsonFileLoaderTest.php, line 51

Class

JsonFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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