/** * @expectedException \Edsonlimadev\Collections\Exception\InvalidReduceException */ public function testReduceWithAnInvalidClosure() { $collection = new Immutable(['Deep Purple']); $collection->reduce(function ($a, $b, $c) { }); }