예제 #1
0
 /** @covers Brickoo\Component\Http\Uri::getHostname */
 public function testGetHostName()
 {
     $hostname = "example.org";
     $authority = $this->getUriAuthorityStub();
     $authority->expects($this->any())->method("getHostname")->will($this->returnValue($hostname));
     $uri = new Uri("https", $authority, "/", $this->getUriQueryStub(), "");
     $this->assertEquals($hostname, $uri->getHostname());
 }