Skip to content

Commit 04f495a

Browse files
committed
improved stability of test comparing map
1 parent d22aa95 commit 04f495a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/OGMFormatterIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ 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::assertEquals(['a' => 'b', 'c' => 'd'], $map->toArray());
74-
self::assertEquals(json_encode(['a' => 'b', 'c' => 'd'], JSON_THROW_ON_ERROR), json_encode($map, JSON_THROW_ON_ERROR));
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));
7575
}
7676

7777
public function testBoolean(): void

0 commit comments

Comments
 (0)