All Versions
28
Latest Version
Avg Release Cycle
141 days
Latest Release
120 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.3.0 Changes
November 24, 2019 -
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 -
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, 2017About 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
andexpects
syntax - โ Adds optional global helpers for
mock
,namedMock
andspy
- โ 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.
- Destructors (
-
v1.0.0-alpha1
February 06, 2017 -
v0.9.11 Changes
February 12, 2019- ๐คก Set property values on all related mocks #944