Skip to content

Commit 66a8782

Browse files
authored
Update JsonDriver.php
1 parent 9db5401 commit 66a8782

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Drivers/JsonDriver.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ public function extension(): string
2828

2929
public function match($expected, $actual)
3030
{
31-
if (is_array($actual)) {
32-
$actual = json_encode($actual, JSON_PRETTY_PRINT)."\n";
33-
}
34-
35-
Assert::assertJsonStringEqualsJsonString($expected, $actual);
31+
$expected = json_decode($expected, true);
32+
Assert::assertEquals($expected, $actual);
3633
}
3734
}

0 commit comments

Comments
 (0)