summaryrefslogtreecommitdiffstats
path: root/tests/mocks/core
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-10-22 03:31:19 +0200
committerdchill42 <dchill42@gmail.com>2012-10-22 03:31:19 +0200
commit4f42be55dc5ca3141f3d93f7f59989d3e52bc5a3 (patch)
tree91105470a75942908114e79df84ebd7a0c779e34 /tests/mocks/core
parentb1aad96fa4842cc1615ce0f43c720586070d2c67 (diff)
Raised CI_Loader test coverage to 93%
Signed-off-by: dchill42 <dchill42@gmail.com>
Diffstat (limited to 'tests/mocks/core')
-rw-r--r--tests/mocks/core/common.php7
-rw-r--r--tests/mocks/core/loader.php13
2 files changed, 4 insertions, 16 deletions
diff --git a/tests/mocks/core/common.php b/tests/mocks/core/common.php
index b001074c8..9289b2716 100644
--- a/tests/mocks/core/common.php
+++ b/tests/mocks/core/common.php
@@ -170,9 +170,10 @@ if ( ! function_exists('is_really_writable'))
if ( ! function_exists('is_loaded'))
{
- function is_loaded()
+ function &is_loaded()
{
- throw new Exception('Bad Isolation: mock up environment');
+ $loaded = array();
+ return $loaded;
}
}
@@ -190,4 +191,4 @@ if ( ! function_exists('set_status_header'))
{
return TRUE;
}
-}
+} \ No newline at end of file
diff --git a/tests/mocks/core/loader.php b/tests/mocks/core/loader.php
deleted file mode 100644
index 7ea4da369..000000000
--- a/tests/mocks/core/loader.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-class Mock_Core_Loader extends CI_Loader {
-
- /**
- * Give public access to _ci_autoloader for testing
- */
- public function autoload()
- {
- $this->_ci_autoloader();
- }
-
-}