Fakes of the parts of mod_perl 2's API that Sentry::Integration::ModPerl
uses, for the unit tests (t/integration-mod-perl.t); mod_perl itself only
installs into an Apache build. Each fake follows the documented semantics
of mod_perl 2.0 (https://perl.apache.org/docs/2.0/api/):

Apache2::ServerUtil->server            the main server (Apache2::ServerRec),
                                       also in <Perl> sections of virtual
                                       hosts
Apache2::PerlSections->server          in a <Perl> section, the server it
                                       configures
$s->push_handlers($phase => $cb)       adds a handler of a phase for all
                                       requests of the server
$s->get_handlers($phase)               the handlers of a phase, as
                                       configured or pushed
$s->next, is_virtual                   the next server (virtual host) of
                                       the chain, whether it is one
$s->is_perl_option_enabled($option)    PerlOptions of the server, e.g.
                                       Parent (an interpreter of its own)
Apache2::MPM->is_threaded              whether the MPM runs threads
Apache2::RequestUtil->request          the request being served, with
                                       PerlOptions +GlobalRequest (the
                                       default of SetHandler perl-script);
                                       dies without
$r->pool->cleanup_register($cb, $arg)  runs $cb->($arg) when the request's
                                       pool is destroyed, after the
                                       response and the cleanup handlers,
                                       last registered first
$r->next                               the request of an internal redirect
                                       (internal_redirect, ErrorDocument)
$r->push_handlers($phase => $cb)       adds a handler for this request only
$r->method, unparsed_uri, args         request line: method, URI as sent
                                       (with query string), query string
$r->headers_in                         APR::Table: get($name) (first value,
                                       case-insensitive; in list context
                                       all values, maybe none), do($cb) (all
                                       pairs, stops when $cb returns false)
$r->notes                              APR::Table; mod_perl and
                                       ModPerl::Registry set 'error-notes'
                                       to the error a handler died with
$r->status                             HTTP status of the response
$r->pnotes($key[, $value])             Perl data of the request
$r->is_initial_req                     false for subrequests and internal
                                       redirects
$r->construct_url($path)               absolute URL of the server for $path
$r->get_server_name, get_server_port   (Apache2::RequestUtil)
$r->connection->aborted                whether the client closed the
                                       connection before the response was
                                       sent
$r->connection->client_ip              (httpd 2.4)
Apache2::Const -compile => qw(OK DECLINED)   OK = 0, DECLINED = -1

t/lib/Local/ModPerl.pm drives a request through the phases like httpd:
the server's PostReadRequest handlers, the response handler, then the
request's cleanup handlers, then its pool cleanups (which Apache runs after
the response has been sent, also after errors and aborted connections). The
order is mod_perl's: cleanup handlers of the configuration still run in the
request the SDK traces (checked in xt/mod_perl).
