Forráskód Böngészése

skip no more needed with jsonc 1.3.9

Remi Collet 9 éve
szülő
commit
a6c6537529
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      tests/Composer/Test/Json/JsonFileTest.php

+ 1 - 1
tests/Composer/Test/Json/JsonFileTest.php

@@ -54,7 +54,7 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
 
     public function testParseErrorDetectSingleQuotes()
     {
-        if (defined('JSON_PARSER_NOTSTRICT')) {
+        if (defined('JSON_PARSER_NOTSTRICT') && version_compare(phpversion('json'), '1.3.9', '<')) {
             $this->markTestSkipped('jsonc issue, see https://github.com/remicollet/pecl-json-c/issues/23');
         }
         $json = '{