summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2014-04-01 02:09:25 +0200
committervlakoff <vlakoff@gmail.com>2014-04-01 02:09:25 +0200
commit7ead65b5dc48c477dc3dfe3b969b1e14bb9a1b79 (patch)
treecf1297b535bd9b328caa7b883750ddb99b1e7bc0 /tests
parent3802d7006726451362c9ebd31302d8d6992dd4d5 (diff)
Discard the unwanted changes
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/core/Config_test.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Config_test.php b/tests/codeigniter/core/Config_test.php
index 81401e3ce..2c28a639c 100644
--- a/tests/codeigniter/core/Config_test.php
+++ b/tests/codeigniter/core/Config_test.php
@@ -67,6 +67,13 @@ class Config_test extends CI_TestCase {
// Clear base_url
$this->ci_set_config('base_url', '');
+ // Rerun constructor
+ $cls =& $this->ci_core_class('cfg');
+ $this->config = new $cls;
+
+ // Test default base
+ $this->assertEquals('http://localhost/', $this->config->base_url());
+
// Capture server vars
$old_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : NULL;
$old_script = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : NULL;
@@ -80,7 +87,6 @@ class Config_test extends CI_TestCase {
$_SERVER['SCRIPT_NAME'] = $path.$script;
// Rerun constructor
- $cls =& $this->ci_core_class('cfg');
$this->config = new $cls;
// Test plain detected (root)