All Versions
28
Latest Version
Avg Release Cycle
141 days
Latest Release
120 days ago

Changelog History
Page 2

  • v1.3.0 Changes

    November 24, 2019
    • โž• Added capture Mockery::capture convenience matcher (#1020)
    • โž• Added andReturnArg to echo back an argument passed to a an expectation (#992)
    • ๐Ÿ‘Œ Improved exception debugging (#1000)
    • ๐Ÿ›  Fixed andSet to not reuse properties between mock objects (#1012)
  • v1.2.4 Changes

    September 30, 2019

    ๐Ÿ›  Fix a bug introduced with previous release, for empty method definition lists (#1009)

  • v1.2.3 Changes

    August 07, 2019
    • ๐Ÿ‘ Allow mocking classes that have allows and expects methods (#868)
    • Allow passing thru __call method in all mock types (experimental) (#969)
    • โž• Add support for ! to blacklist methods (#959)
    • โž• Added withSomeOfArgs to partial match a list of args (#967)
    • ๐Ÿ›  Fix chained demeter calls with type hint (#956)
  • v1.2.2 Changes

    February 13, 2019

    ๐Ÿ›  Fix a BC breaking change for PHP 5.6/PHPUnit 5.7.27 (#947)

  • v1.2.1 Changes

    February 08, 2019
    • ๐Ÿ‘Œ Support for PHPUnit 8 (#942)
    • ๐Ÿ‘ Allow mocking static methods called on instance (#938)
  • v1.2.0 Changes

    October 02, 2018
    • ๐Ÿคก Starts counting default expectations towards count (#910)
    • โž• Adds workaround for some HHVM return types (#909)
    • โž• Adds PhpStorm metadata support for autocomplete etc (#904)
    • ๐Ÿคก Further attempts to support multiple PHPUnit versions (#903)
    • ๐Ÿ‘ Allows setting constructor expectations on instance mocks (#900)
    • โž• Adds workaround for HHVM memoization decorator (#893)
  • v1.1.0 Changes

    May 08, 2018
    • ๐Ÿ‘ Allows use of string method names in allows and expects (#794)
    • ๐Ÿคก Finalises allows and expects syntax in API (#799)
    • ๐Ÿคก Search for handlers in a case instensitive way (#801)
    • ๐Ÿ—„ Deprecate allowMockingMethodsUnnecessarily (#808)
    • ๐Ÿ›  Fix risky tests (#769)
    • ๐Ÿ›  Fix namespace in TestListener (#812)
    • ๐Ÿ›  Fixed conflicting mock names (#813)
    • ๐Ÿคก Clean elses (#819)
    • โšก๏ธ Updated protected method mocking exception message (#826)
    • ๐Ÿคก Map of constants to mock (#829)
    • ๐Ÿคก Simplify foreach with in_array function (#830)
    • ๐Ÿคก Typehinted return value on Expectation#verify. (#832)
    • ๐Ÿ›  Fix shouldNotHaveReceived with HigherOrderMessage (#842)
    • ๐Ÿ—„ Deprecates shouldDeferMissing (#839)
    • โž• Adds support for return type hints in Demeter chains (#848)
    • โž• Adds shouldNotReceive to composite expectation (#847)
    • ๐Ÿ›  Fix internal error when using --static-backup (#845)
    • โž• Adds andAnyOtherArgs as an optional argument matcher (#860)
    • ๐Ÿ›  Fixes namespace qualifying with namespaced named mocks (#872)
  • v1.0 Changes

    October 06, 2017

    About time we had a 1.0.

    ๐Ÿ”„ Change Log

    • Destructors (__destruct) are stubbed out where it makes sense
    • ๐Ÿ‘ Allow passing a closure argument to withArgs() to validate multiple arguments at once.
    • โœ… Mockery\Adapter\Phpunit\TestListener has been rewritten because it
      โœ… incorrectly marked some tests as risky. It will no longer verify mock
      โœ… expectations but instead check that tests do that themselves. PHPUnit 6 is
      required if you want to use this fail safe.
    • โœ‚ Removes SPL Class Loader
    • โœ‚ Removed object recorder feature
    • โฌ†๏ธ Bumped minimum PHP version to 5.6
    • andThrow will now throw anything \Throwable
    • โž• Adds allows and expects syntax
    • โž• Adds optional global helpers for mock, namedMock and spy
    • โž• Adds ability to create objects using traits
    • ๐Ÿ—„ Mockery\Matcher\MustBe was deprecated
    • ๐Ÿคก Marked Mockery\MockInterface as internal
    • Subset matcher matches recusively
    • ๐Ÿคก BC BREAK - Spies return null by default from ignored (non-mocked) methods with nullable return type
    • โœ‚ Removed extracting getter methods of object instances
    • ๐Ÿšš BC BREAK - Remove implicit regex matching when trying to match string arguments, introduce \Mockery::pattern() when regex matching is needed
    • ๐Ÿ›  Fix Mockery not getting closed in cases of failing test cases
    • ๐Ÿ›  Fix Mockery not setting properties on overloaded instance mocks
    • ๐Ÿคก BC BREAK - Fix Mockery not trying default expectations if there is any concrete expectation
    • โœ… BC BREAK - Mockery's PHPUnit integration will mark a test as risky if it
      thinks one it's exceptions has been swallowed in PHPUnit > 5.7.6. Use $e->dismiss() to dismiss.
  • v1.0.0-alpha1

    February 06, 2017
  • v0.9.11 Changes

    February 12, 2019
    • ๐Ÿคก Set property values on all related mocks #944