path() public static method

Builds the full path part of an URL.
public static path ( array $parts ) : string
$parts array URL parts.
return string URL.
 /**
  *
  */
 public function testPath()
 {
     $parts = [Url::path => 'a', Url::query => 'b=c', Url::fragment => 'd'];
     $this->assertEquals('/a?b=c#d', Url::path($parts));
 }