public function test_exception_from_recoverable_error_handler_is_handled() { $handler = new ErrorHandler(); $recoverableError = new RecoverableError(ErrorType::ERROR, 'foo', 'bar', 'baz'); $handler->addRecoverableErrorHandler(function (IError $error) { throw new Exception(); }); try { $handler->handleRecoverableError($recoverableError); } catch (Exception $ex) { } }