public function testSetFragment() { $url = new Url('http://jwage.com'); $url->fragment->path = 'about'; $url->fragment->query->set('param1', 'value1'); $this->assertEquals('http://jwage.com/#about?param1=value1', (string) $url); }