public function testBasicSetHost() { $value = uniqid('test:'); $url = new Url(); $url->setHost($value); $this->assertEquals($value, $url->getHost()); }
public function testInstantiationIsNull() { $url = new Url(); $this->assertNull($url->getHost()); }
public function changeSubdomain($sNewSubdomain) { $this->oUrl->setHost(str_ireplace($this->getSubdomain(), $sNewSubdomain, $this->oUrl->getHost())); return $this->oUrl->getHost(); }