getUrlForRelativePath() 공개 메소드

Builds a URL with a path component that is relative to the current one
public getUrlForRelativePath ( $path ) : Url
리턴 Url
예제 #1
0
파일: UrlTest.php 프로젝트: 99designs/ergo
 public function testGetForRelativePathWithOnlySlash()
 {
     $url = new Http\Url('http://example.org/test');
     $relative = $url->getUrlForRelativePath('/');
     $this->assertEquals($relative->__toString(), 'http://example.org/test');
 }