Skip to content

Commit 10baae8

Browse files
committed
test wrapOrNullArray() on empty array
1 parent baed8e0 commit 10baae8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/10-ValueTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,11 @@ public function testWrapOrNullArray()
406406
$a['k1']->equals($orig_a['k1']) &&
407407
$a['k3']->equals($orig_a['k3'])),
408408
"wrapOrNullArray() did not wrap the correct values!");
409+
410+
$empty = [];
411+
TestWrapper4::wrapOrNullArray($empty);
412+
$this->assertSame([], $empty,
413+
"wrapOrNullArray() did not handle empty array correctly!");
409414
}
410415

411416

0 commit comments

Comments
 (0)