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