Test::Environment::Plugin::Apache2 - mock Apache2 modules to test mod_perl2 handlers
use Test::Environment qw{ Apache2 };
This module will just sets:
unshift @INC, File::Spec->catdir(File::Basename::dirname(__FILE__), 'Apache');
So that the mock Apache2 modules are found and loaded from there. No need to have following modules in order to test mod_perl2 handlers.
Test::Environment::Plugin::Apache2::Apache2::Filter (Apache2::Filter), Test::Environment::Plugin::Apache2::Apache2::Log (Apache2::Log), Test::Environment::Plugin::Apache2::Apache2::RequestRec (Apache2::RequestRec)
Jozef Kutej
To install Test::Environment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Environment
CPAN shell
perl -MCPAN -e shell install Test::Environment
For more information on module installation, please visit the detailed CPAN module installation guide.