1
0
Fork 0

Resolve references in ComposerSchemaTest

pull/6034/head
Christophe Coevoet 2017-01-03 11:57:35 +01:00
parent 0b27952dec
commit 1cb0ec7911
1 changed files with 1 additions and 2 deletions

View File

@ -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();