golden hour
/home/phakp/public_html/bkp_full/old_site_bkp/tests/mocks/core
⬆️ Go Up
Upload
File/Folder
Size
Actions
common.php
2.75 KB
Del
OK
input.php
1.08 KB
Del
OK
security.php
895 B
Del
OK
uri.php
700 B
Del
OK
utf8.php
255 B
Del
OK
Edit: uri.php
<?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; } }
Save