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) 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)