mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Resolve references in ComposerSchemaTest
This commit is contained in:
parent
0b27952dec
commit
1cb0ec7911
1 changed files with 1 additions and 2 deletions
|
@ -95,9 +95,8 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
private function check($json)
|
||||
{
|
||||
$schema = json_decode(file_get_contents(__DIR__ . '/../../../../res/composer-schema.json'));
|
||||
$validator = new Validator();
|
||||
$validator->check(json_decode($json), $schema);
|
||||
$validator->check(json_decode($json), (object) array('$ref' => 'file://' . __DIR__ . '/../../../../res/composer-schema.json'));
|
||||
|
||||
if (!$validator->isValid()) {
|
||||
$errors = $validator->getErrors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue