ci-phpunit-test for CodeIgniter 3.0 |
(12-30-2015, 07:26 PM)kenjis Wrote: @resolv_25 Hi, I'm probably missing something. I believe I did put 'testing' environment properly, in .htaccess i have: SetEnv CI_ENV 'testing' On database.php I have: 'db_debug' => (ENVIRONMENT == 'testing'), If I put in code: echo $_SERVER['CI_ENV']; I do get answer 'testing' phpunit gives following error: Code: Error: No code coverage driver is available BTW, the method get_category_list gives proper result if I'm calling it from a controller.
You misunderstand about `testing` environment.
ci-phpunit-test always sets `testsing` automatically, so you don't have to do anything to set environment. Do you have `config/testing/database.php`? If you have it, you must configure it correclty. (01-04-2016, 06:37 AM)resolv_25 Wrote:(12-30-2015, 07:26 PM)kenjis Wrote: @resolv_25
I opened the issue:
How to test setting cookie in controller testing https://github.com/kenjis/ci-phpunit-test/issues/86 If you have opinion about it, please comment. (01-04-2016, 10:24 PM)kenjis Wrote: I opened the issue: I sent a PR for it. See https://github.com/kenjis/ci-phpunit-test/pull/88
At last ci-phpunit-test can test Welcome controller using wiredesignz/codeigniter-modular-extensions-hmvc without any modifications.
See https://github.com/kenjis/ci-hmvc-ci-phpunit-test This dose not means ci-phpunit-test fully supports HMVC, but the compatibility with HMVC has been increased.
v0.11.0 was released.
https://github.com/kenjis/ci-phpunit-test/releases Please read Upgrade Note when you upgrade.
About HMVC
Another test case was added to: https://github.com/kenjis/ci-hmvc-ci-phpunit-test And I added a note: https://github.com/kenjis/ci-hmvc-ci-php...ote-to-use
v0.11.1 was released!
See https://github.com/kenjis/ci-phpunit-test/releases It is a bug fix release.
v0.11.2 was released!
See https://github.com/kenjis/ci-phpunit-test/releases |
Welcome Guest, Not a member yet? Register Sign In |