Mockery v0.9.1 Release Notes
Release Date: 2014-05-02 // almost 10 years ago-
- ๐ 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()
shouldIgnoreMissing
now takes an optional value that will be return instead of null, e.g.$mock->shouldIgnoreMissing($mock)
- ๐ Allow specifying consecutive exceptions to be thrown with