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