Testee
Enables unit testing and TDD for ExpressionEngine add-ons.
Testee makes unit testing and test-driven development of ExpressionEngine add-ons easy.
Behind the scenes, Testee takes care of all the hard work of replacing ExpressionEngine’s built-in objects with mock objects, allowing you to get on with writing tests safe in the knowledge that you’re not about to destroy your site:
$this->EE->db->expectOnce('empty_table', array('members'));
Testee uses the PHP SimpleTest framework to run your tests, and interpret the results. If you know how to write a SimpleTest unit test, you already know how to write a Testee unit test; and if you don’t, SimpleTest is well documented.