diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-08-15 18:23:29 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2014-03-26 21:43:32 +0100 |
commit | f93c3bbe76f8fe87049e2ad5e254a201484a48bb (patch) | |
tree | 3c5343261e1e08d63b436406a15d47d468e47c82 | |
parent | b0e4b4390bca05446e10ab208a08e6ecc2f10ba1 (diff) | |
download | SemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.zip SemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.tar.gz SemanticScuttle-f93c3bbe76f8fe87049e2ad5e254a201484a48bb.tar.bz2 |
test configurable root
-rw-r--r-- | tests/SemanticScuttle/EnvironmentTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/SemanticScuttle/EnvironmentTest.php b/tests/SemanticScuttle/EnvironmentTest.php index 762d350..35851f0 100644 --- a/tests/SemanticScuttle/EnvironmentTest.php +++ b/tests/SemanticScuttle/EnvironmentTest.php @@ -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( |