CodeIgniter HMVC and ci-phpunit-test
- CodeIgniter 3.1.11
- codeigniter-modular-extensions-hmvc codeigniter-3.x
- PHPUnit 7.5.20
- ci-phpunit-test 1.0.x@dev
If you want to see PHP5 code, check out https://github.com/kenjis/ci-hmvc-ci-phpunit-test/tree/php54.
Note
- codeigniter-modular-extensions-hmvc is popular but a very complex system, and is against CodeIgniter's basic design. It brings complexity to CodeIgniter.
- So to work CodeIgniter HMVC and ci-phpunit-test together is still under way. See https://github.com/kenjis/ci-phpunit-test/issues/34.
- If you can avoid using it, I recommend not use it.
Requirements
- PHP 7.2 or later
- composer
Note to Use
- Please try to use
MX_Controller
instead of CI_Controller
, if you get errors.
How to Run Tests
$ git clone https://github.com/kenjis/ci-hmvc-ci-phpunit-test.git
$ cd ci-hmvc-ci-phpunit-test/
$ composer install
$ composer test
References