12 $r = new http\Client\Request("GET", "http://localhost/");
13 var_dump(null === $r->getQuery());
14 var_dump($r === $r->setQuery($q = "foo=bar"));
15 var_dump($q === $r->getQuery());
16 var_dump($r === $r->addQuery("a[]=1&a[]=2"));
17 var_dump("foo=bar&a%5B0%5D=1&a%5B1%5D=2" === $r->getQuery());
18 var_dump(null === $r->setQuery(null)->getQuery());