11 $s = "foo bar.arg:0.bla gotit:0.now";
12 $p = new http\Params($s, " ", ".", ":");
14 $k = array("foo", "bar", "gotit");
15 $a = array("foo"=>"arg", "bar"=>"bla", "gotit"=>"now");
45 var_dump(count($p->params));
48 foreach ($k as $key) {
49 var_dump(array_key_exists($key, $p->params));
53 foreach ($k as $key) {
54 var_dump($p[$key]["value"]);
58 foreach ($k as $key) {
59 var_dump(count($p[$key]["arguments"]));
63 foreach ($k as $key) {
64 var_dump(@$p[$key]["arguments"][$a[$key]]);
68 var_dump($c === (string) $p);
69 var_dump($r === $p->params);
70 $x = new http\Params($p->params);
71 var_dump($r === $x->toArray());