diff --git a/tests/Unit/DumperTest.php b/tests/Unit/DumperTest.php index b37acdf8..05fd8e31 100644 --- a/tests/Unit/DumperTest.php +++ b/tests/Unit/DumperTest.php @@ -39,12 +39,8 @@ public function testAsJsonObjectsMapLevelOne(): void public function testAsJsonObjectsMapNestedObject(): void { - $nested3 = new stdClass(); - $nested3Id = spl_object_id($nested3); - $nested2 = new stdClass(); $nested2->name = 'nested2'; - $nested3->var = $nested3; $nested2Id = spl_object_id($nested2); $nested1 = new stdClass(); @@ -73,7 +69,7 @@ public function testAsJsonObjectsMapNestedObject(): void } } JSON, - Dumper::create($object)->asJsonObjectsMap(300, true) + Dumper::create($object)->asJsonObjectsMap(1, true) ); }