コード例 #1
0
 /**
  * @covers Brickoo\Component\Http\UriAuthority::__construct
  * @covers Brickoo\Component\Http\UriAuthority::getHostname
  */
 public function testGetHostname()
 {
     $hostname = "example.org";
     $uriAuthority = new UriAuthority($hostname);
     $this->assertEquals($hostname, $uriAuthority->getHostname());
 }
コード例 #2
0
ファイル: Uri.php プロジェクト: brickoo/components
 /**
  * Returns the uri hostname.
  * @return string the hostname
  */
 public function getHostname()
 {
     return $this->authority->getHostname();
 }