My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

PHPMockFunction provides a set of APIs for setting expectations on php functions (whether previously defined or newly defined).

It uses the PECL runkit extension as a means to redefine existing functions, and allows users to set return values or throw exceptions based on passed in arguments.

Instructions can be found here:

http://www.workhabit.com/labs/mock-function-testing-drupal

Powered by Google Project Hosting