/**
* @dataProvider oneToTen
*/
public function testApplyDoesNotWorkAfterProjection(\Pinq\ICollection $collection, array $data)
{
$projectedCollection = $collection->select(function ($i) {
return $i;
});
$projectedCollection->apply(function (&$i) {
$i *= 10;
});
$this->assertMatches($collection, range(1, 10));
$this->assertMatches($projectedCollection, range(1, 10));
}