CodeIgniter comes with a built-in testing module, and I would really like to use it. However, almost all the functions that I would like to test interact with the database, adding records, deleting records, etc. For example, how will I write tests for the "create user" function, without actually creating users each time I run the test?
With some further research, it seems to me that I need to use Mock objects for external services such as a database, etc. I have not been able to find much information on how to do this except this one forum: http://codeigniter.com/forums/viewthread/106737
Is there any actual documentation?
source share