You are here

public function JsonFileLoaderTest::testParseException in Zircon Profile 8.0

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

@expectedException \Symfony\Component\Translation\Exception\InvalidResourceException @expectedExceptionMessage Error parsing JSON - Syntax error, malformed JSON

File

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

Class

JsonFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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