@@ 745-751 (lines=7) @@ | ||
742 | * @test |
|
743 | * @covers ::unsetAll |
|
744 | */ |
|
745 | public function unsetAllEmptyKeys() |
|
746 | { |
|
747 | $array = ['a', 'b', 'c']; |
|
748 | A::unsetAll($array, []); |
|
749 | // array unchanged |
|
750 | $this->assertSame(['a', 'b', 'c'], $array); |
|
751 | } |
|
752 | ||
753 | /** |
|
754 | * Verify behavior of unsetAll() with keys that don't exist |
|
@@ 759-765 (lines=7) @@ | ||
756 | * @test |
|
757 | * @covers ::unsetAll |
|
758 | */ |
|
759 | public function unsetAllKeyNotFound() |
|
760 | { |
|
761 | $array = ['a', 'b', 'c']; |
|
762 | A::unsetAll($array, [3, 4]); |
|
763 | // array unchanged |
|
764 | $this->assertSame(['a', 'b', 'c'], $array); |
|
765 | } |
|
766 | ||
767 | /** |
|
768 | * Verify basic behavior of nullifyEmptyStrings(). |