WordPress function mocks for unit testing
I’m working on a library for WordPress plugin and theme development that simulates as many of the core WordPress functions as necessary, for use in automated unit and functional testing. It’s a work in progress as I refine it during my refactoring work for ComicPress Manager. It should work fine in both PHPUnit and SimpleTest (I’m using PHPUnit for my WP plugin unit testing now). It also includes some helper functions for checking HTML output with SimpleXML and XPath. No official releases at the moment, so check out a copy of the Git repo if you want to try it out. You can also read the API documentation that is generated every so often.

