diff --git a/application/tests/_ci_phpunit_test/autoloader.php b/application/tests/_ci_phpunit_test/autoloader.php
index <HASH>..<HASH> 100644
--- a/application/tests/_ci_phpunit_test/autoloader.php
+++ b/application/tests/_ci_phpunit_test/autoloader.php
@@ -19,5 +19,6 @@ spl_autoload_register(function ($class)
 });
 
 // Register CodeIgniter's tests/mocks/autoloader.php
+define('SYSTEM_PATH', BASEPATH);
 require __DIR__ .'/../mocks/autoloader.php';
 spl_autoload_register('autoload');
Fix bug which constant SYSTEM_PATH is missing