diff --git a/src/Drivers/JsonDriver.php b/src/Drivers/JsonDriver.php
index <HASH>..<HASH> 100644
--- a/src/Drivers/JsonDriver.php
+++ b/src/Drivers/JsonDriver.php
@@ -18,7 +18,7 @@ class JsonDriver implements Driver
             throw new CantBeSerialized('Resources can not be serialized to json');
         }
 
-        return json_encode($data, JSON_PRETTY_PRINT).PHP_EOL;
+        return json_encode($data, JSON_PRETTY_PRINT)."\n";
     }
 
     public function extension(): string
@@ -29,7 +29,7 @@ class JsonDriver implements Driver
     public function match($expected, $actual)
     {
         if (is_array($actual)) {
-            $actual = json_encode($actual, JSON_PRETTY_PRINT).PHP_EOL;
+            $actual = json_encode($actual, JSON_PRETTY_PRINT)."\n";
         }
 
         Assert::assertJsonStringEqualsJsonString($expected, $actual);
Fix inconsistent EOLs in JSON snapshots on Windows

It replaces OS dependent `PHP_EOL` with `\n`.

`json_encode` with `JSON_PRETTY_PRINT` flag always use `\n` regardless of OS, but `PHP_EOL` yields `\r\n` on Windows causing inconsistent line ends and unnecessary diff for git, if files are regenerated.