public function getNetloc() { $this->initialize(); return ($this->user && $this->pass ? $this->user . ($this->pass ? ':' . $this->pass : '') . '@' : '') . $this->host . ($this->port ? ':' . $this->port : ''); }
public function testGetNetloc() { $url = new Url('https://*****:*****@jwage.com:443'); $this->assertEquals('user:[email protected]:443', $url->getNetloc()); }