Test::Environment::Plugin::Apache2::Apache2::Filter - fake Apache2::Filter for Test::Environment
use Test::Environment qw{ Apache2 }; my $filter = Apache2::Filter->new( 'data' => \$data, ); is( My::App:Apache2::Filter::handler($filter), Apache2::Const::OK, ); is($$filter->r->pnotes('any_news'), 'no');
Will populate Apache2::Filter namespace with fake methods that can be used for Apache2::Filter testing.
ctx data max_buffer_size data_for_next_filter seen_eos
Filter object contructor.
Will put $len (or $self->max_bufer_size if smaller) characters from $self->data into the buffer.
Will append @args to the $self->data_for_next_filter.
* implement sending/setting eos
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.