public function testValues() { CopixConfig::instance()->url_requestedscript_variable = 'PHP_SELF'; // Verifions que l'on retourne le bon hote $this->assertEquals($_SERVER['HTTP_HOST'], CopixUrl::getRequestedDomain()); $this->assertRegexp('/^\\/.*test\\.php$/', CopixUrl::getRequestedScript()); $this->assertEquals('test.php', CopixUrl::getRequestedScriptName()); $this->assertEquals('http://', CopixUrl::getRequestedProtocol()); $currentUrl = CopixUrl::getCurrentUrl(); }