public function testSetUri() { $u = new Url(); $u->setUri('/foo/bar?bar=baz#frag'); $this->assertEquals('/foo/bar?bar=baz#frag', $u->__toString()); }