diff --git a/tests/Composer/Test/Json/JsonFileTest.php b/tests/Composer/Test/Json/JsonFileTest.php index 867c69307..08d976f4f 100644 --- a/tests/Composer/Test/Json/JsonFileTest.php +++ b/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 = '{