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