From 47308ba4bbc613eb73060a7d87b317fdbcf0f155 Mon Sep 17 00:00:00 2001 From: Marcus Speight Date: Tue, 15 Jan 2019 09:41:38 +0000 Subject: [PATCH] Fix json schema to allow relative schemas on Windows. --- src/Context/JsonContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/JsonContext.php b/src/Context/JsonContext.php index 99630567..d835fc91 100644 --- a/src/Context/JsonContext.php +++ b/src/Context/JsonContext.php @@ -323,7 +323,7 @@ public function theJsonShouldBeValidAccordingToTheSchema($filename) $this->getJson(), new JsonSchema( file_get_contents($filename), - 'file://' . realpath($filename) + 'file://' . str_replace(DIRECTORY_SEPARATOR, '/', realpath($filename)) ) ); }