1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Tweak exception messages

This commit is contained in:
Jordi Boggiano 2012-07-03 14:19:19 +02:00
parent ae2fb6be89
commit db16f68fbf
3 changed files with 5 additions and 6 deletions

View file

@ -198,9 +198,8 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
try {
JsonFile::parseJson($json);
$this->fail();
} catch (JsonValidationException $e) {
} catch (ParsingException $e) {
$this->assertContains($text, $e->getMessage());
$this->assertNotEmpty($e->getErrors());
}
}