Raised CI_Loader test coverage to 93%
Signed-off-by: dchill42 <dchill42@gmail.com>
diff --git a/tests/mocks/core/common.php b/tests/mocks/core/common.php
index b001074..9289b27 100644
--- a/tests/mocks/core/common.php
+++ b/tests/mocks/core/common.php
@@ -170,9 +170,10 @@
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 @@
{
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 7ea4da3..0000000
--- 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();
- }
-
-}