/** * @expectedException \Edsonlimadev\Collections\Exception\InvalidFilterException */ public function testFilterWithAnInvalidClosure() { $collection = new Immutable(['Alcatrazz', 'Rainbow']); $collection->filter(function ($a, $b, $c) { }); }