加藤 和良 > Test-Apache2 > Test::Apache2

Download:
Test-Apache2-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Test::Apache2 - Simple test harness of mod_perl handler

SYNOPSIS ^

  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');

DESCRIPTION ^

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.

AUTHOR ^

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.

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Apache::Test, Test::Environment, Apache2::ASP

syntax highlighting: