summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core/uri.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-09-19 14:08:45 +0200
committerAndrey Andreev <narf@devilix.net>2019-09-19 14:08:45 +0200
commitb73eb19aed66190c10c9cad476da7c36c271d6dc (patch)
treeb3d5d4f960569c30701934416d6d51628bde81a7 /tests/mocks/core/uri.php
parent6e052d80b95b9332ed592cdc3431b5f9dc8dd250 (diff)
[ci skip] 3.1.11 release
Diffstat (limited to 'tests/mocks/core/uri.php')
-rw-r--r--tests/mocks/core/uri.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/mocks/core/uri.php b/tests/mocks/core/uri.php
deleted file mode 100644
index 96ec5afa1..000000000
--- a/tests/mocks/core/uri.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?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_',
- 'enable_query_strings' => FALSE,
- 'permitted_uri_chars' => 'a-z 0-9~%.:_\-'
- ));
-
- $this->config = new $cls;
-
- if ($this->config->item('enable_query_strings') !== TRUE OR is_cli())
- {
- $this->_permitted_uri_chars = $this->config->item('permitted_uri_chars');
- }
- }
-
- public function _set_permitted_uri_chars($value)
- {
- $this->_permitted_uri_chars = $value;
- }
-
-} \ No newline at end of file