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;