Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Feb 20, 2024
1 parent 6d06429 commit fe84650
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/Unit/Drivers/JsonDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\Attributes\TestWith;
use PHPUnit\Framework\Attributes\TestWithJson;
use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\TestCase;
use Spatie\Snapshots\Drivers\JsonDriver;
Expand Down Expand Up @@ -126,16 +125,16 @@ public function it_can_not_serialize_resources()
}

#[Test]
#[TestWith(["{}", "{}", true])]
#[TestWith(["{}", "{\"data\":1}", false])]
#[TestWith(["{\"data\":1}", "{\"data\":1}", true])]
#[TestWith(["{\"data\":1}", "{\"data\":\"1\"}", false])]
#[TestWith(["true", "true", true])]
#[TestWith(["false", "false", true])]
#[TestWith(["null", "null", true])]
#[TestWith(["1", "1", true])]
#[TestWith(["1.1", "1.1", true])]
#[TestWith(["{\"empty\": []}", "{\"empty\":{}}", false])]
#[TestWith(['{}', '{}', true])]
#[TestWith(['{}', '{"data":1}', false])]
#[TestWith(['{"data":1}', '{"data":1}', true])]
#[TestWith(['{"data":1}', '{"data":"1"}', false])]
#[TestWith(['true', 'true', true])]
#[TestWith(['false', 'false', true])]
#[TestWith(['null', 'null', true])]
#[TestWith(['1', '1', true])]
#[TestWith(['1.1', '1.1', true])]
#[TestWith(['{"empty": []}', '{"empty":{}}', false])]
public function it_can_match_json_strings(string $expected, string $actual, bool $assertion)
{
$driver = new JsonDriver();
Expand Down

0 comments on commit fe84650

Please sign in to comment.