Posted on

PHPUnit CodeIgniter FAIL

Well today was a horrible waste of time. All thanks to our good friends at CIUnit / CodeIgniter.
Seems that PHPUnit and CodeIgniter to not integrate out of the box.
And CIUnit, at the time of this writing, trying out the fooStack, is for version 1.7 of CI, whilst we are using 2.1. So that didn’t work.

And this video below demonstrates wiring the two ‘frameworks’ together. As you can see there is a lot of work, manual work, which I don’t do anymore since I learned Grails (cause it does the work for you). Like using your eyes to identify dependencies and rewriting them with fake stubs. Such a f*ing headache just to be able to assert that 1 = 1.