public function testExceptionThrownInArrayCallbackWhileReduceRight() { $this->setExpectedException('DomainException', 'Callback exception: 2'); reduce_right($this->list, [$this, 'exception']); }