function testRemoveQueryItems() { $str = 'http://localhost/test.php?foo=bar&bar=foo'; $uri = new lmbUri($str); $uri->removeQueryItems(); $this->assertEqual('', $uri->getQueryString()); $this->assertEqual('http://localhost/test.php', $uri->toString()); }