darhazer/better-phpunit-mock-objects

3.0.6 2015-12-08 08:47 UTC

README

** This repository contains number of improvements over the original PHPUnit_MockObjects

Improvements

  • return value of a mock can be overwritten (see #260)
  • returnValueMap allows using constraints (see #285)
  • returnValueMap allows using stubs for the returnValue (see #285)
  • Added willYield method for mocking generators (see #286)
  • Added support for spy objects (callOriginal method) (see #287)