blob: b6946091e04dd4c838f2dcd13f852737438757b0 [file] [log] [blame]
Taufan Adityaca16c4f2012-03-28 15:15:30 +07001<?php
2
Taufan Adityaca16c4f2012-03-28 15:15:30 +07003class Mock_Core_URI extends CI_URI {
4
5 public function __construct()
6 {
7 $test = CI_TestCase::instance();
8 $cls =& $test->ci_core_class('cfg');
9
10 // set predictable config values
11 $test->ci_set_config(array(
12 'index_page' => 'index.php',
13 'base_url' => 'http://example.com/',
14 'subclass_prefix' => 'MY_'
15 ));
16
17 $this->config = new $cls;
18
19 }
20
21 protected function _is_cli_request()
22 {
23 return FALSE;
24 }
25}