/** * @dataProvider everything */ public function testThatRemoveWhereFalseRemovesNoItems(\Pinq\ICollection $collection, array $data) { $collection->removeWhere(function () { return false; }); $this->assertMatchesValues($collection, $data); }
public function visitRemoveWhere(Operations\RemoveWhere $operation) { $this->collection->removeWhere($this->parameters[$operation->getPredicateFunction()->getCallableId()]); }