瀏覽代碼

skip no more needed with jsonc 1.3.9

Remi Collet 9 年之前
父節點
當前提交
a6c6537529
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 = '{