diff --git a/spec/JSON-Schema-Test-Suite b/spec/JSON-Schema-Test-Suite index 0436e52..002ce0f 160000 --- a/spec/JSON-Schema-Test-Suite +++ b/spec/JSON-Schema-Test-Suite @@ -1 +1 @@ -Subproject commit 0436e52e702bf0d67fe8ce50adc7e22623b491b1 +Subproject commit 002ce0fbe070f483429260188b18fe07bd6ec0f0 diff --git a/tests/src/PHPUnit/Ref/FileResolverTest.php b/tests/src/PHPUnit/Ref/FileResolverTest.php index 24268a3..f584aba 100644 --- a/tests/src/PHPUnit/Ref/FileResolverTest.php +++ b/tests/src/PHPUnit/Ref/FileResolverTest.php @@ -71,6 +71,7 @@ public function testFileResolver() function testFileReference() { $pathToExternalSchema = __DIR__ . '/../../../resources/remotes/subSchemas.json'; + $pathToExternalSchema = $this->preparePath($pathToExternalSchema); $schemaData = json_decode(<<preparePath($pathToExternalSchema); $schemaData = json_decode(<<preparePath($pathToExternalSchema); $schemaData = json_decode(<<preparePath($pathToExternalSchema); $schemaData = json_decode(<<preparePath($pathToExternalSchema); $schemaData = json_decode(<<in('abc'); } + private function preparePath($path) + { + if (DIRECTORY_SEPARATOR === '\\') { + return str_replace('\\', '/', $path); + } + return $path; + } } \ No newline at end of file