function TestOfRemoveWindowsDrive() { $this->caseTitle('removeWindowsDrive'); $documentRoot = $_SERVER["DOCUMENT_ROOT"]; $this->log($documentRoot); $this->assertEqual(strpos($documentRoot, $this->drive), 0); $documentRoot = Amslib_File::removeWindowsDrive($_SERVER["DOCUMENT_ROOT"]); $this->log($documentRoot); $this->assertFalse(strpos($documentRoot, $this->drive)); $documentRoot = $_SERVER["SCRIPT_FILENAME"]; $this->log($documentRoot); $this->assertEqual(strpos($documentRoot, $this->drive), 0); $documentRoot = Amslib_File::removeWindowsDrive($_SERVER["DOCUMENT_ROOT"]); $this->log($documentRoot); $this->assertFalse(strpos($documentRoot, $this->drive)); $documentRoot = 'E:\\Dir1\\Dir2'; $this->log($documentRoot); $documentRoot = Amslib_File::removeWindowsDrive($documentRoot); $this->log($documentRoot); $this->assertFalse(strpos($documentRoot, 'E:')); }