We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be5d9bc commit 824d8f6Copy full SHA for 824d8f6
tests/Integration/CreateTest.php
@@ -82,9 +82,15 @@ public function testCreate()
82
)
83
);
84
85
+ self::assertIsArray(DotArray::create(null)->toArray());
86
+ self::assertIsArray(DotArray::create(1)->toArray());
87
+ self::assertIsArray(DotArray::create([])->toArray());
88
+ self::assertIsArray(DotArray::create(DotArray::create([]))->toArray());
89
+
90
$dot = new DotArray($this->data);
91
92
self::assertIsArray($dot->toArray());
93
94
self::assertArrayHasKey('empty_array', $dot->toArray());
95
self::assertArrayHasKey('indexed_array', $dot->toArray());
96
self::assertArrayHasKey('assoc_array', $dot->toArray());
0 commit comments