public function testThatRemoveWhereRemovesScopedValues(\Pinq\ICollection $collection, array $data)
{
$filteredScopeCollection = $collection->where(function ($i) {
return $i % 3 === 0;
});
$slicedScopeCollection = $filteredScopeCollection->take(1);
$slicedScopeCollection->removeWhere(function ($i) {
return $i === 3;
});
$this->assertMatchesValues($slicedScopeCollection, [6]);
$this->assertMatchesValues($filteredScopeCollection, [6, 9]);
$this->assertMatchesValues($collection, [1, 2, 4, 5, 6, 7, 8, 9, 10]);
}