mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Tweak exception messages
This commit is contained in:
parent
ae2fb6be89
commit
db16f68fbf
3 changed files with 5 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue