All Versions
41
Latest Version
Avg Release Cycle
115 days
Latest Release
883 days ago
Changelog History
Page 4
Changelog History
Page 4
-
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\TestListenerhas 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
andThrowwill now throw anything\Throwable- โ Adds
allowsandexpectssyntax - โ Adds optional global helpers for
mock,namedMockandspy - โ Adds ability to create objects using traits
- ๐
Mockery\Matcher\MustBewas deprecated - ๐คก Marked
Mockery\MockInterfaceas internal - Subset matcher matches recusively
- ๐คก BC BREAK - Spies return
nullby 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
-
v0.9.10
November 16, 2018 -
v0.9.9
February 28, 2017 -
v0.9.8
February 10, 2017 -
v0.9.4 Changes
shouldIgnoreMissingwill respect globalallowMockingNonExistentMethodsconfig- ๐ Some support for variadic parameters
- Hamcrest is now a required dependency
- ๐คก Instance mocks now respect
shouldIgnoreMissingcall on control instance - ๐ This will be the last version to support PHP 5.3
- โ Added
Mockery\Adapter\Phpunit\MockeryPHPUnitIntegrationtrait - โ Added
makePartialtoMockery\MockInterfaceas it was missing
-
v0.9.3 Changes
December 22, 2014- โ Added a basic spy implementation
- โ Added
Mockery\Adapter\Phpunit\MockeryTestCasefor 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)withMockery\MockInterface::shouldAllowMockingMethod($methodName) - โ Added andReturnSelf method:
$mock->shouldReceive("foo")->andReturnSelf() shouldIgnoreMissingnow takes an optional value that will be return instead of null, e.g.$mock->shouldIgnoreMissing($mock)
- ๐ Allow specifying consecutive exceptions to be thrown with