public function test_exception_from_exception_handler_is_handled() { $handler = new ErrorHandler(); $exception = new Exception(); $handler->addExceptionHandler(function (Exception $ex) { throw new Exception(); }); try { $handler->handleException($exception); } catch (Exception $ex) { } }