Add Unit testing to PHPCI

I've started writing some unit tests for PHPCI. It seems to me that this is a good point to start getting the coverage up. If we want to start doing some larger refactorings then it will really help.

I'm undecided if the directory structure is sensible.