1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

fix test for json-schema 5.2

This commit is contained in:
Remi Collet 2017-05-22 08:01:51 +02:00
parent d7b2e42fa9
commit 95d82f6fde

View file

@ -101,9 +101,10 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
if (!$validator->isValid()) {
$errors = $validator->getErrors();
// remove justinrainbow/json-schema 3.0 props so it works with all versions
// remove justinrainbow/json-schema 3.0/5.2 props so it works with all versions
foreach ($errors as &$err) {
unset($err['pointer']);
unset($err['context']);
}
return $errors;