summaryrefslogtreecommitdiffstats
path: root/tests/mocks/autoloader.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-04 20:23:56 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-04 20:23:56 +0200
commit61ff054fb905f0514b942bf3e70a6c882bd64f7a (patch)
tree2c5ba32563e11b2204d559d0762f67e4862d869f /tests/mocks/autoloader.php
parent26490e37f4bdb267b71431abd79782549cbbadda (diff)
Adding schema and initial Query Builder code coverage
Diffstat (limited to 'tests/mocks/autoloader.php')
-rw-r--r--tests/mocks/autoloader.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mocks/autoloader.php b/tests/mocks/autoloader.php
index 22448139e..f1bdb5d6f 100644
--- a/tests/mocks/autoloader.php
+++ b/tests/mocks/autoloader.php
@@ -62,7 +62,7 @@ function autoload($class)
elseif (strpos($class, 'CI_DB') === 0)
{
$dir = BASEPATH.'database'.DIRECTORY_SEPARATOR;
- $file = $dir.str_replace('CI_DB', 'DB', $subclass).'.php';
+ $file = $dir.str_replace(array('CI_DB','active_record'), array('DB', 'active_rec'), $subclass).'.php';
}
else
{
@@ -82,7 +82,7 @@ function autoload($class)
{
return FALSE;
}
- var_dump($file);
+
throw new InvalidArgumentException("Unable to load $class.");
}