summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/php/divide.t
blob: d547cc31378e90b95bdc1db4dce2fda6bc801e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings FATAL => 'all';

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

plan tests => 1, need_php;

## divide.php source:
## <?php $a=27; $b=3; $c=3; $d=$a/$b/$c; echo $d?>
##
## result should be '3' (27/3/3=3)

my $result = GET_BODY "/php/divide.php";
ok $result eq '3';