Why not adopt me?
NAME
Mock::Apache - mock Apache environment for testing and debugging
SYNOPSIS
use Mock::Apache;
my $server = Mock::Apache->setup_server(param => 'value', ...);
my $request = $server->new_request(method_name => 'value', ...);
$server->
DESCRIPTION
Mock::Apache
is a mock framework for testing and debugging mod_perl 1.x applications. It is based on Apache::FakeRequest
but goes beyond that module, attempting to provide a relatively comprehensive mocking of the mod_perl environment.
The module is still very much at an alpha stage, with much of the Apache::* classes missing.
I am aiming to provide top-level methods to "process a request", by giving the mock apache object enough information about the configuration to identify handlers, etc. Perhaps passing the server_setup method the pathname of an Apache configuration file even and minimally "parsing" it.
METHODS
setup_server
new_request
execute_handler
localizes elements of the %ENV hash
AUTHORS
Andrew Ford <andrew@ford-mason.co.uk>
Based on Apache::FakeRequest
by Doug MacEachern, with contributions from Andrew Ford <andrew@ford-mason.co.uk>.