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