public function testHasPath() { $url = new CUrl("http://www.example.com/"); // "/" is the path $this->assertTrue($url->hasPath()); $url = new CUrl("http://www.example.com/path/to/item"); $this->assertTrue($url->hasPath()); $url = new CUrl("http://www.example.com"); $this->assertFalse($url->hasPath()); }