Beispiel #1
0
 public function testRootUrlIsConstantWithRespectToPath()
 {
     $url = new \webignition\Url\Url('http://example.com/');
     $this->assertEquals('http://example.com', $url->getRoot());
     $url = new \webignition\Url\Url('http://example.com/index.html');
     $this->assertEquals('http://example.com', $url->getRoot());
     $url = new \webignition\Url\Url('http://example.com/path/to/application.php');
     $this->assertEquals('http://example.com', $url->getRoot());
 }