SimpleTest Mocks

SimpleTest is a unit testing framework for PHP similar to the xUnit frameworks available for other languages. Whilst SimpleTest provides a mock-objects implementation it was (at the time that I begun this project) still quite incomplete. Because of this, I developed an alternative mock-object framework that complements SimpleTest nicely, whilst adding support for PHP5 semantics (such as interfaces) and providing a more flexible API than SimpleTest.

A list of the biggest features:

  • Record and replay model for expectations.
  • Expectations can be set based upon argument matching and number of call repetitions.
  • Actions can be set upon method calls to return specific values or throw exceptions.

Get It!

Sorry, the download isn't yet available, but it is on its way!