travis: condense build matrix
[m6w6/ext-http] / tests / params007.phpt
1 --TEST--
2 urlencoded params
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $s = "foo=b%22r&bar=b%22z&a%5B%5D%5B%5D=1";
12 $p = new http\Params($s, "&", "", "=", http\Params::PARSE_URLENCODED);
13 $c = array(
14 "foo" => array(
15 "value" => "b\"r",
16 "arguments" => array(),
17 ),
18 "bar" => array(
19 "value" => "b\"z",
20 "arguments" => array(),
21 ),
22 "a[][]" => array(
23 "value" => "1",
24 "arguments" => array(),
25 ),
26 );
27 var_dump($c === $p->params);
28 var_dump("foo=b%22r&bar=b%22z&a%5B%5D%5B%5D=1" === (string) $p);
29 ?>
30 DONE
31 --EXPECT--
32 Test
33 bool(true)
34 bool(true)
35 DONE