Amock is a mocking library for PHP 5. Mock objects for classes or interfaces are generated on the fly using a source code generator.