]> git.decadent.org.uk Git - maypole.git/blob - t/apache_mvc.t
Test::MockObject isn't a dependency, add helper for dynamic prereq_pm (which may...
[maypole.git] / t / apache_mvc.t
1 #!/usr/bin/perl -w
2 use strict;
3 use Test::More tests => 10;
4
5 require_ok('Apache::MVC');
6 ok($Apache::MVC::VERSION, 'defines $VERSION');
7 # defines $VERSION
8 # uses mod_perl
9 # @ISA = 'Maypole'
10 # sets APACHE2 constant
11 # loads Apache::Request
12 # loads mod_perl2 modules if APACHE2
13 # otherwise, loads Apache
14 # get_request()
15 # ... sets 'ar' to new Apache::Request object
16 # parse_location()
17 # ... sets path() to request URI - base URI
18 # ... calls parse_path
19 # ... calls parse_args
20 # parse_args()
21 # ... calls _mod_perl_args(), to set params
22 # ... calls _mod_perl_args(), to set query
23 # send_output()
24 # ... sets get_request->content_type to r->content_type
25 # ... appends document_encoding() if content_type is text
26 # ... sets Content-Length header
27 # ... calls get_request->send_http_header unless APACHE2
28 # ... prints the request output
29 # get_template_root()
30 # ... catdir(document_root, location)
31 # _mod_perl_args()
32 # ... returns a hash of args from get_request->param