Pinq\Tests\Integration\Collection\RemoveTest::testThatRemoveWillRemovesIdenticalValuesFromCollectionAndPreserveKeys PHP Метод

testThatRemoveWillRemovesIdenticalValuesFromCollectionAndPreserveKeys() публичный Метод

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