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