public function testClearURL() { $url = new \r8\URL(); $url->setURL("http://*****:*****@www.example.com/path/to/file.php?one=single#frag"); $url->setFauxDir("/test/dir"); $this->assertSame($url, $url->clearURL()); $this->assertFalse($url->schemeExists()); $this->assertFalse($url->userNameExists()); $this->assertFalse($url->passwordExists()); $this->assertFalse($url->hostExists()); $this->assertFalse($url->dirExists()); $this->assertFalse($url->filenameExists()); $this->assertFalse($url->extExists()); $this->assertFalse($url->fauxDirExists()); $this->assertFalse($url->queryExists()); $this->assertFalse($url->fragmentExists()); }