simplify
[m6w6/ext-http] / tests / envrequestquery.phpt
1 --TEST--
2 env request query
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --GET--
6 a=b&b=c&r[]=1&r[]=2
7 --FILE--
8 <?php
9 echo "TEST\n";
10
11 $r = new http\Env\Request;
12 printf("%s\n", $r->getQuery());
13 printf("%s\n", $r->getQuery("b", "s", null, true));
14 printf("%s\n", $r->getQuery("x", "s", "nooo"));
15 printf("%s\n", $r->getQuery());
16 ?>
17 DONE
18 --EXPECT--
19 TEST
20 a=b&b=c&r%5B0%5D=1&r%5B1%5D=2
21 c
22 nooo
23 a=b&r%5B0%5D=1&r%5B1%5D=2
24 DONE