host() public static method

Builds the full host part of an URL.
public static host ( array $parts ) : string
$parts array URL parts.
return string URL.
 /**
  *
  */
 public function testHost()
 {
     $parts = [Url::scheme => 'http', Url::host => 'test.com', Url::port => '8080', Url::user => 'user', Url::pass => 'pass'];
     $this->assertEquals('http://*****:*****@test.com:8080', Url::host($parts));
 }