Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I easily unit test with CodeIgniter? [closed]

I want to test my controllers / models with CodeIgniter. How can I accomplish this with CodeIgniter?

like image 325
Shamoon Avatar asked Dec 10 '12 16:12

Shamoon


2 Answers

please check out unit testing here: unit testing with CI

This might help too: stackoverflow link

like image 59
ssj1980 Avatar answered Oct 22 '22 01:10

ssj1980


The platform you're using is irrelevant. You can use the built-in CodeIgniter Unit testing library, or if you would like an approach which is more similar to many common Unit testing libraries, I'd suggest you to use Toast: http://jensroland.com/projects/toast/

like image 28
Luis Martin Avatar answered Oct 22 '22 01:10

Luis Martin