public function testNormalizedPathString() { $url = new CUrl("http://www.example.com"); // path normalization makes an empty path be "/" $this->assertTrue($url->normalizedPathString()->equals("/")); $url = new CUrl("http://www.example.com/path/to/item"); $this->assertTrue($url->normalizedPathString()->equals("/path/to/item")); $url = new CUrl("http://www.example.com/path/to/some%20item"); $this->assertTrue($url->normalizedPathString()->equals("/path/to/some%20item")); $url = new CUrl("http://www.example.com/path/to/some%20ite%6D"); $this->assertTrue($url->normalizedPathString()->equals("/path/to/some%20item")); $url = new CUrl("http://www.example.com/path/to/some%20ite%6D"); $this->assertTrue($url->normalizedPathString(true)->equals("/path/to/some item")); }