فهرست منبع

fix test for json-schema 5.2

Remi Collet 7 سال پیش
والد
کامیت
95d82f6fde
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tests/Composer/Test/Json/ComposerSchemaTest.php

+ 2 - 1
tests/Composer/Test/Json/ComposerSchemaTest.php

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