summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/php/switch3.t
blob: 767b0d9de67eb82efe9d4feef2202c1f0610cc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestRequest;

plan tests => 1, need_php;

my $expected = <<EXPECT;
i=0
In branch 0
i=1
In branch 1
i=2
In branch 2
i=3
In branch 3
hi
EXPECT

my $result = GET_BODY "/php/switch3.php";
ok $result eq $expected;