You are here

public function JsonFileLoaderTest::testParseException in Plug 7

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

File

lib/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');
}