GrayMocks is a dynamic mock object framework for PHP. It is a testing tool that allows developers to create mock implementations of custom objects and verify the interactions of objects and their collaborators through unit testing.

GrayMocks includes:

Since the GrayMocks project was inspired by the Rhino.Mocks mock object framework, it assumes a certain degree of familiarity with its style of object mocking. Some day soon we hope to provide more tutorials and documentation to help new developers get started with using GrayMocks.