public function testGetUrlForRelativePath() { $url = new Http\Url('http://example.org/my'); $relative = $url->getUrlForRelativePath('/path'); $this->assertEquals($relative->__toString(), 'http://example.org/my/path'); }