Pinq\Tests\Integration\Collection\RemoveRangeTest::testThatRemoveRangeWillRemovesIdenticalValuesFromCollectionAndPreserveKeys PHP Method

testThatRemoveRangeWillRemovesIdenticalValuesFromCollectionAndPreserveKeys() public method

public testThatRemoveRangeWillRemovesIdenticalValuesFromCollectionAndPreserveKeys ( Pinq\ICollection $collection, array $data )
$collection Pinq\ICollection
$data array
    public function testThatRemoveRangeWillRemovesIdenticalValuesFromCollectionAndPreserveKeys(\Pinq\ICollection $collection, array $data)
    {
        $collection->removeRange([1, '2']);
        foreach ($data as $key => $value) {
            if ($value === 1 || $value === '2') {
                unset($data[$key]);
            }
        }
        $this->assertMatchesValues($collection, $data);
    }