setHost() public method

Sets the host(s) of the URI
public setHost ( string $host ) : void
$host string The hostname(s)
return void
Ejemplo n.º 1
0
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function settingInvalidHostThrowsException()
 {
     $uri = new Uri('');
     $uri->setHost('an#invalid.host');
 }