diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-04-06 20:47:49 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-04-06 20:47:49 +0200 |
commit | 9c9591c9b4a1d7ac412f7a85aeb5c92f50aa3490 (patch) | |
tree | 7c124a83b2ca8e064caaef00f83b514200311339 /tests/mocks/core/uri.php | |
parent | d1587defeb0304755d9a937aa688ee82098de246 (diff) |
Fix erroneous merge
Diffstat (limited to 'tests/mocks/core/uri.php')
-rw-r--r-- | tests/mocks/core/uri.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/mocks/core/uri.php b/tests/mocks/core/uri.php new file mode 100644 index 000000000..b6946091e --- /dev/null +++ b/tests/mocks/core/uri.php @@ -0,0 +1,25 @@ +<?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', + 'base_url' => 'http://example.com/', + 'subclass_prefix' => 'MY_' + )); + + $this->config = new $cls; + + } + + protected function _is_cli_request() + { + return FALSE; + } +}
\ No newline at end of file |