function testClearingParameters() { $url = new SimpleUrl(''); $url->addRequestParameter('a', 'A'); $url->clearRequest(); $this->assertIdentical($url->getEncodedRequest(), ''); }
function testClearingParameters() { $url = new SimpleUrl(''); $url->addRequestParameter('a', 'A'); $url->clearRequest(); $request = $url->getRequest(); $this->assertIdentical($request, array()); }