Amp\Artax\Uri::getHost PHP Method

getHost() public method

public getHost ( ) : string
return string
    public function getHost()
    {
        return $this->host;
    }

Usage Example

示例#1
0
文件: UriTest.php 项目: amphp/artax
 /**
  * @dataProvider provideUris
  */
 public function testUri($rawUri, $expectedVals)
 {
     $uri = new Uri($rawUri);
     $this->assertEquals($expectedVals['scheme'], $uri->getScheme());
     $this->assertEquals($expectedVals['host'], $uri->getHost());
     $this->assertEquals($expectedVals['user'], $uri->getUser());
     $this->assertEquals($expectedVals['pass'], $uri->getPass());
     $this->assertEquals($expectedVals['port'], $uri->getPort());
     $this->assertEquals($expectedVals['path'], $uri->getPath());
     $this->assertEquals($expectedVals['query'], $uri->getQuery());
     $this->assertEquals($expectedVals['fragment'], $uri->getFragment());
 }
All Usage Examples Of Amp\Artax\Uri::getHost