Amock: Mock objects library for PHP 5
Amock is an open-source mocking library written in PHP 5 for programs written in PHP 5. Mock objects for classes or interfaces are generated on the fly using a source code generator.
Amock is published under the MIT license which means you are free and welcome to use it in any way.
link






