public function testValidQueryStringFormat() { $link = new Link('http://www.mostafa.com/path/subpath/index.php?b5=%3D%253D&a3=a&c%40=&a2=r%20b'); $link->setQueryStringFormat(PHP_QUERY_RFC3986); $this->assertEquals('http://www.mostafa.com/path/subpath/index.php?b5=%3D%253D&a3=a&c%40=&a2=r%20b', (string) $link); $this->assertEquals('=%3D', $link->getQueryParameter('b5')); $this->assertEquals('r b', $link->getQueryParameter('a2')); }