aboutsummaryrefslogtreecommitdiff
path: root/t/basic.t
blob: f6e289f82c64fcb51266763b8e9bd27ea62c9594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest qw/GET_BODY/;

plan tests => 2;

ok 1;

open my $t, '<', 't/htdocs/test.html' or die;
open my $h, '<', 't/htdocs/head.html' or die;
open my $f, '<', 't/htdocs/foot.html' or die;
my $test = do { local $/; <$t> };
my $head = do { local $/; <$h> };
my $foot = do { local $/; <$f> };
close $t; close $h; close $f;

my $body = GET_BODY '/test.html';
ok $body, "$head$test$foot", 'Body of test.html includes header and footer';