| 1 | package Test::Environment::Plugin::Apache2; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | Test::Environment::Plugin::Apache2 - mock Apache2 modules to test mod_perl2 handlers | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use Test::Environment qw{ | ||
| 10 | Apache2 | ||
| 11 | }; | ||
| 12 | |||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | This module will just sets: | ||
| 17 | |||
| 18 | unshift @INC, File::Spec->catdir(File::Basename::dirname(__FILE__), 'Apache'); | ||
| 19 | |||
| 20 | So that the mock Apache2 modules are found and loaded from there. No need to | ||
| 21 | have following modules in order to test L<mod_perl2> handlers. | ||
| 22 | |||
| 23 | L<Test::Environment::Plugin::Apache2::Apache2::Filter> (L<Apache2::Filter>), | ||
| 24 | L<Test::Environment::Plugin::Apache2::Apache2::Log> (L<Apache2::Log>), | ||
| 25 | L<Test::Environment::Plugin::Apache2::Apache2::RequestRec> (L<Apache2::RequestRec>) | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | |||
| 32 | 1 | our $VERSION = "0.07"; | |
| 33 | |||
| 34 | 1 | ▶ | use File::Basename qw(); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | 1 | ▶ | use File::Spec qw(); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | 1 | unshift @INC, File::Spec->catdir(File::Basename::dirname(__FILE__), 'Apache2'); | |
| 38 | |||
| 39 | 1 | 1; | |
| 40 | |||
| 41 | |||
| 42 | __END__ | ||