Test::Apache2 - Simple test harness of mod_perl handler
use Test::More tests => 1; use Test::Apache2; my $server = Test::Apache2::Server->new; $server->location('/myapp', { PerlResponseHandler => 'MyAppHandler', }); my $resp = $server->get('/myapp'); is($resp->content, 'hello world');
This module provides a simple test harness of mod_perl handler.
The difference between the module and Apache::Test is that the former don't spawn an real Apache process.
KATO Kazuyoshi <kzys@8-p.info>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Apache::Test, Test::Environment, Apache2::ASP
To install Test::Apache2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Apache2
CPAN shell
perl -MCPAN -e shell install Test::Apache2
For more information on module installation, please visit the detailed CPAN module installation guide.