Skip to content

Commit fe84650

Browse files
freekmurzegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6d06429 commit fe84650

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

tests/Unit/Drivers/JsonDriverTest.php

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\Attributes\Test;
66
use PHPUnit\Framework\Attributes\TestWith;
7-
use PHPUnit\Framework\Attributes\TestWithJson;
87
use PHPUnit\Framework\ExpectationFailedException;
98
use PHPUnit\Framework\TestCase;
109
use Spatie\Snapshots\Drivers\JsonDriver;
@@ -126,16 +125,16 @@ public function it_can_not_serialize_resources()
126125
}
127126

128127
#[Test]
129-
#[TestWith(["{}", "{}", true])]
130-
#[TestWith(["{}", "{\"data\":1}", false])]
131-
#[TestWith(["{\"data\":1}", "{\"data\":1}", true])]
132-
#[TestWith(["{\"data\":1}", "{\"data\":\"1\"}", false])]
133-
#[TestWith(["true", "true", true])]
134-
#[TestWith(["false", "false", true])]
135-
#[TestWith(["null", "null", true])]
136-
#[TestWith(["1", "1", true])]
137-
#[TestWith(["1.1", "1.1", true])]
138-
#[TestWith(["{\"empty\": []}", "{\"empty\":{}}", false])]
128+
#[TestWith(['{}', '{}', true])]
129+
#[TestWith(['{}', '{"data":1}', false])]
130+
#[TestWith(['{"data":1}', '{"data":1}', true])]
131+
#[TestWith(['{"data":1}', '{"data":"1"}', false])]
132+
#[TestWith(['true', 'true', true])]
133+
#[TestWith(['false', 'false', true])]
134+
#[TestWith(['null', 'null', true])]
135+
#[TestWith(['1', '1', true])]
136+
#[TestWith(['1.1', '1.1', true])]
137+
#[TestWith(['{"empty": []}', '{"empty":{}}', false])]
139138
public function it_can_match_json_strings(string $expected, string $actual, bool $assertion)
140139
{
141140
$driver = new JsonDriver();

0 commit comments

Comments
 (0)