public function getPath() { return empty($this->_fragments['path']) ? '/' : $this->_fragments['path']; }
public function testWithoutPath() { $url = new Http\Url('http://example.org'); $this->assertEquals($url->getPath(), '/'); }