isNetworkPathReference() public static method

A relative reference that begins with two slash characters is termed an network-path reference.
public static isNetworkPathReference ( Psr\Http\Message\UriInterface $uri ) : boolean
$uri Psr\Http\Message\UriInterface
return boolean
Exemplo n.º 1
0
 public function testIsNetworkPathReference()
 {
     $this->assertFalse(Uri::isNetworkPathReference(new Uri('http://example.org')));
     $this->assertTrue(Uri::isNetworkPathReference(new Uri('//example.org')));
     $this->assertFalse(Uri::isNetworkPathReference(new Uri('/abs-path')));
     $this->assertFalse(Uri::isNetworkPathReference(new Uri('rel-path')));
 }