All Versions
31
Latest Version
Avg Release Cycle
141 days
Latest Release
789 days ago

Changelog History
Page 3

  • 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
  • v0.9.10

    November 16, 2018
  • v0.9.9

    February 28, 2017
  • v0.9.8

    February 10, 2017
  • v0.9.4 Changes

    • shouldIgnoreMissing will respect global allowMockingNonExistentMethods config
    • ๐Ÿ‘ Some support for variadic parameters
    • Hamcrest is now a required dependency
    • ๐Ÿคก Instance mocks now respect shouldIgnoreMissing call on control instance
    • ๐Ÿ‘ This will be the last version to support PHP 5.3
    • โž• Added Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration trait
    • โž• Added makePartial to Mockery\MockInterface as it was missing
  • v0.9.3 Changes

    December 22, 2014
    • โž• Added a basic spy implementation
    • โž• Added Mockery\Adapter\Phpunit\MockeryTestCase for more reliable PHPUnit integration
  • v0.9.2 Changes

    September 03, 2014
    • โ†ช Some workarounds for the serialisation problems created by changes to PHP in 5.5.13, 5.4.29, 5.6.
    • ๐Ÿ‘€ Demeter chains attempt to reuse doubles as they see fit, so for foo->bar and foo->baz, we'll attempt to use the same foo
  • v0.9.1 Changes

    May 02, 2014
    • ๐Ÿ‘ Allow specifying consecutive exceptions to be thrown with andThrowExceptions
    • ๐Ÿ‘ Allow specifying methods which can be mocked when using Mockery\Configuration::allowMockingNonExistentMethods(false) with Mockery\MockInterface::shouldAllowMockingMethod($methodName)
    • โž• Added andReturnSelf method: $mock->shouldReceive("foo")->andReturnSelf()
    • shouldIgnoreMissing now takes an optional value that will be return instead of null, e.g. $mock->shouldIgnoreMissing($mock)