"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/t/hooks/inlined_handlers.t" (5 Oct 2019, 561 Bytes) of package /linux/www/apache_httpd_modules/mod_perl-2.0.11.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "inlined_handlers.t": 2.0.8_vs_2.0.9.

    1 # please insert nothing before this line: -*- mode: cperl; cperl-indent-level: 4; cperl-continued-statement-offset: 4; indent-tabs-mode: nil -*-
    2 use strict;
    3 use warnings FATAL => 'all';
    4 
    5 use Apache::Test;
    6 use Apache::TestUtil;
    7 use Apache::TestRequest;
    8 use TestCommon::SameInterp;
    9 
   10 plan tests => 2, need 'HTML::HeadParser';
   11 
   12 my $location = "/TestHooks__inlined_handlers";
   13 
   14 my $expected = "ok";
   15 for (1..2) {
   16     my $received = GET $location;
   17 
   18     ok t_cmp(
   19         $received->content,
   20         $expected,
   21         "anonymous handlers in httpd.conf test",
   22     );
   23 }
   24