test configurable root

This commit is contained in:
Christian Weiske 2011-08-15 18:23:29 +02:00
parent b0e4b4390b
commit f93c3bbe76

View File

@ -230,6 +230,15 @@ class SemanticScuttle_EnvironmentTest extends PHPUnit_Framework_TestCase
);
}
public function testGetRootWithConfigPreset()
{
$GLOBALS['root'] = 'https://happy.penguin.example.org/walks/away/';
$this->assertEquals(
'https://happy.penguin.example.org/walks/away/',
SemanticScuttle_Environment::getRoot()
);
}
public function testGetRootInRootDir()
{
$_SERVER = array(