summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/URI_test.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-03-28 12:13:52 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-03-28 12:13:52 +0200
commitc8ab5738c920f0daec0af184dbb2f744c3ca9611 (patch)
treead74003a1a758f4c5638f06687f2ee60e534e941 /tests/codeigniter/core/URI_test.php
parenta11b16b1af42bbb4ffbc15eeee50a3d3ceb402d5 (diff)
parentbdb84af43792f507eaab5ab0c4b3ec1be17a1a54 (diff)
Merge pull request #1226 from toopay/unit-tests
Improve Unit tests
Diffstat (limited to 'tests/codeigniter/core/URI_test.php')
-rw-r--r--tests/codeigniter/core/URI_test.php33
1 files changed, 1 insertions, 32 deletions
diff --git a/tests/codeigniter/core/URI_test.php b/tests/codeigniter/core/URI_test.php
index 40252aa14..e340ddf73 100644
--- a/tests/codeigniter/core/URI_test.php
+++ b/tests/codeigniter/core/URI_test.php
@@ -1,41 +1,10 @@
<?php
-require BASEPATH.'core/URI.php';
-
-/**
- * Extend the URI class
- * - override contructor
- * - override CLI detection
- */
-class URI_extended 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;
- }
-}
-
class URI_test extends CI_TestCase {
public function set_up()
{
- $this->uri = new URI_extended();
+ $this->uri = new Mock_Core_URI();
}
// --------------------------------------------------------------------