What's new? | Help | Directory | Sign in
Google
php-mock-function
PHPMockFunction is an api for mocking php functions ala JMock
  
  
  
  
    
Join project
Project owners:
  aaron.stewball
Project members:
dhubler

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.