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

fixed issue #347 added file to json validation exception

This commit is contained in:
Robert Schönthal 2012-07-02 11:32:26 +02:00
parent b82b9b53f7
commit c517ac6404
10 changed files with 60 additions and 36 deletions

View file

@ -13,6 +13,7 @@
namespace Composer\Test\Json;
use Seld\JsonLint\ParsingException;
use Composer\Json\JsonValidationException;
use Composer\Json\JsonFile;
class JsonFileTest extends \PHPUnit_Framework_TestCase
@ -197,7 +198,7 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
try {
JsonFile::parseJson($json);
$this->fail();
} catch (ParsingException $e) {
} catch (JsonValidationException $e) {
$this->assertContains($text, $e->getMessage());
}
}