]> git.decadent.org.uk Git - maypole.git/blob - t/apache_mvc.t
Change author acknowledge to explicit copyright statement.
[maypole.git] / t / apache_mvc.t
1 #!/usr/bin/perl -w
2 use strict;
3 use Test::More;
4 BEGIN {
5     if (eval { require Apache::Request }) {
6         plan tests => 2;
7     } else {
8         Test::More->import(skip_all =>"Apache::Request is not installed: $@");
9     }
10 }
11
12 require_ok('Apache::MVC');
13 ok($Apache::MVC::VERSION, 'defines $VERSION');
14 # defines $VERSION
15 # uses mod_perl
16 # @ISA = 'Maypole'
17 # sets APACHE2 constant
18 # loads Apache::Request
19 # loads mod_perl2 modules if APACHE2
20 # otherwise, loads Apache
21 # get_request()
22 # ... sets 'ar' to new Apache::Request object
23 # parse_location()
24 # ... sets path() to request URI - base URI
25 # ... calls parse_path
26 # ... calls parse_args
27 # parse_args()
28 # ... calls _mod_perl_args(), to set params
29 # ... calls _mod_perl_args(), to set query
30 # send_output()
31 # ... sets get_request->content_type to r->content_type
32 # ... appends document_encoding() if content_type is text
33 # ... sets Content-Length header
34 # ... calls get_request->send_http_header unless APACHE2
35 # ... prints the request output
36 # get_template_root()
37 # ... catdir(document_root, location)
38 # _mod_perl_args()
39 # ... returns a hash of args from get_request->param