public function testSimpleQueryString() { $source = "key1=1&key2=" . urlencode('&&&'); $qs = new Http\QueryString($source); $this->assertEquals($qs->toArray(), array('key1' => '1', 'key2' => '&&&')); $this->assertEquals($qs->__toString(), $source); }