public function testExceptionThrownInIteratorCallbackWhileReduceLeft() { $this->setExpectedException('DomainException', 'Callback exception: 0'); reduce_left($this->listIterator, [$this, 'exception']); }