summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core/uri.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-09 22:34:21 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-09 22:34:21 +0200
commitf243ce13b4baf5bf8bebf36586514bb243dfc355 (patch)
tree6f9b26f7b1c82f50c0c9e4a1d0190b3398948da7 /tests/mocks/core/uri.php
parentc186288755aba46a2b6f0c3f104d9a6ce6b11a7f (diff)
Cleanup/optimize tests/mocks/
Diffstat (limited to 'tests/mocks/core/uri.php')
-rw-r--r--tests/mocks/core/uri.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/mocks/core/uri.php b/tests/mocks/core/uri.php
index b6946091e..94f75df64 100644
--- a/tests/mocks/core/uri.php
+++ b/tests/mocks/core/uri.php
@@ -1,12 +1,12 @@
<?php
class Mock_Core_URI extends CI_URI {
-
+
public function __construct()
{
$test = CI_TestCase::instance();
$cls =& $test->ci_core_class('cfg');
-
+
// set predictable config values
$test->ci_set_config(array(
'index_page' => 'index.php',
@@ -14,12 +14,13 @@ class Mock_Core_URI extends CI_URI {
'subclass_prefix' => 'MY_'
));
- $this->config = new $cls;
+ $this->config = new $cls;
}
-
+
protected function _is_cli_request()
{
return FALSE;
}
+
} \ No newline at end of file