mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
some more test failure details
This commit is contained in:
parent
42a9561ae2
commit
d7f7418243
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
|
|||
private function expectParseException($text, $json)
|
||||
{
|
||||
try {
|
||||
JsonFile::parseJson($json);
|
||||
$this->fail();
|
||||
$result = JsonFile::parseJson($json);
|
||||
$this->fail(sprintf("Parsing should have failed but didn't.\nExpected:\n\"%s\"\nFor:\n\"%s\"\nGot:\n\"%s\"", $text, $json, var_export($result, true)));
|
||||
} catch (ParsingException $e) {
|
||||
$this->assertContains($text, $e->getMessage());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue