diff options
Diffstat (limited to 'tests/codeigniter/core/Loader_test.php')
-rw-r--r-- | tests/codeigniter/core/Loader_test.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Loader_test.php b/tests/codeigniter/core/Loader_test.php index dea01a555..ac2656e75 100644 --- a/tests/codeigniter/core/Loader_test.php +++ b/tests/codeigniter/core/Loader_test.php @@ -147,6 +147,9 @@ class Loader_test extends CI_TestCase { public function test_driver() { + // Call the autoloader, to include system/libraries/Driver.php + class_exists('CI_Driver_Library', TRUE); + // Create driver in VFS $driver = 'unit_test_driver'; $dir = ucfirst($driver); @@ -220,7 +223,7 @@ class Loader_test extends CI_TestCase { // Test name conflict $obj = 'conflict'; - $this->ci_obj->$obj = new StdClass(); + $this->ci_obj->$obj = new stdClass(); $this->setExpectedException( 'RuntimeException', 'CI Error: The model name you are loading is the name of a resource that is already being used: '.$obj |