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:
parent
b82b9b53f7
commit
c517ac6404
10 changed files with 60 additions and 36 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue