Welcome Guest, Not a member yet? Register   Sign In
ci-phpunit-test for CodeIgniter 3.0
#36

If you have installed HMVC, ci-phpunit-test did not work because of error.
Today I commited the change not to cause the error. If you apply the patch below, you can run phpunit without errors.

Code:
--- a/application/third_party/MX/Modules.php
+++ b/application/third_party/MX/Modules.php
@@ -2,7 +2,7 @@

(defined('EXT')) OR define('EXT', '.php');

-global $CFG;
+$CFG =& load_class('Config');

/* get module locations from config settings or use the default module location and offset */
is_array(Modules::$locations = $CFG->item('modules_locations')) OR Modules::$locations = array(

But I still don't know HMVC and ci-phpunit work fine or not.
If there is someone who wants to use HMVC and ci-phpunit-test, please test master branch of ci-phpunit-test.
Reply


Messages In This Thread
ci-phpunit-test for CodeIgniter 3.0 - by kenjis - 05-09-2015, 11:33 PM
RE: CI PHPUnit Test for CodeIgniter 3.0 - by kenjis - 10-16-2015, 12:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB