(05-09-2016, 09:30 PM)kenjis Wrote: > what are the advantages of using "ci-phpunit-test" instead of "codeception" (acceptance and functional tests) with a "ci_instance" (unit tests) that loads all the components (database, session, helpers, models, etc) ?
First of all, I recommend Codeception for acceptance tests. Our book has a chapter for it.
The advantages that I think:
* No runkit required.
* More tested by many users.
* Has more hacks for improving testablities of CodeIgniter.
* Functionality to inject mocks into controllers (functional tests).
* Has documentation (and this Book).
I'm not sure your approach has test isolation. I mean one test does not affect another test.
But if you use runkit, you can probably do whatever.
I think you have a point, thanks for sharing your knowledge and your experience with all of us, also congratulations for finishing your book, i purchased a copy because i follow your work from some time ago, keep up the excellent work