/** * @expectedException \Edsonlimadev\Collections\Exception\InvalidClosureException */ public function testEachWithAnInvalidClosure() { $collection = new Immutable(['Genesis', 'Yes']); $collection->each(function ($a, $b, $c, $d, $e) { }); }