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
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testParseException() {
$loader = new JsonFileLoader();
$resource = __DIR__ . '/../fixtures/malformed.json';
$loader
->load($resource, 'en', 'domain1');
}