We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db5401 commit 66a8782Copy full SHA for 66a8782
src/Drivers/JsonDriver.php
@@ -28,10 +28,7 @@ public function extension(): string
28
29
public function match($expected, $actual)
30
{
31
- if (is_array($actual)) {
32
- $actual = json_encode($actual, JSON_PRETTY_PRINT)."\n";
33
- }
34
-
35
- Assert::assertJsonStringEqualsJsonString($expected, $actual);
+ $expected = json_decode($expected, true);
+ Assert::assertEquals($expected, $actual);
36
}
37
0 commit comments