public function testException() { try { $array = []; $stream = new Stream($array); $stream->reduce('MinFunction'); } catch (\InvalidArgumentException $ex) { return; } $this->fail('An expected exception has not been raised.'); }