Skip to content

Commit 40a803b

Browse files
committed
fixed broken test
1 parent 8696095 commit 40a803b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Integration/OGMFormatterIntegrationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ public function testMap(): void
7070
{
7171
$map = $this->getSession()->transaction(static fn (TransactionInterface $tsx) => $tsx->run('RETURN {a: "b", c: "d"} as map')->first()->get('map'));
7272
self::assertInstanceOf(CypherMap::class, $map);
73-
self::assertEqualsCanonicalizing(['a' => 'b', 'c' => 'd'], $map->toArray());
74-
self::assertEqualsCanonicalizing(json_encode(['a' => 'b', 'c' => 'd'], JSON_THROW_ON_ERROR), json_encode($map, JSON_THROW_ON_ERROR));
73+
$array = $map->toArray();
74+
ksort($array);
75+
self::assertEquals(['a' => 'b', 'c' => 'd'], $array);
7576
}
7677

7778
public function testBoolean(): void

0 commit comments

Comments
 (0)