- Fixes incorrect description of some matchers when they fail
- POSSIBLY BREAKING Only verified calls are removed from storage (previously each verification caused all recored calls to be removed)
- Adds capture into pointer matcher
- Makes Mimus Mocks thread safe (thanks @adiki)
- Added Sourcery stencil
- BREAKING
MockEquatable
has been renamed toMatcher
to more closely express functionality provided (there is a typealias for backwards compatibility but it might still be breaking in some cases) - BREAKING
Mock.storage
type has been changed from[RecordedCall]
toStorage
to better support future features (like e.g. the recording of return values) - BREAKING Calling verify will now reset previously recorded values
- Added option to record values that should be returned for specific invocations
- Added option to provide a custom failure message for a matcher
- SPM Support
- Mismatched arguments are now included in failure message (thanks @Eluss)
- Added shorthand for
AnyMatcher()
- Add '.atMost' VerificationMode (thanks @kamwysoc)
- Make failure messages more detailed (thanks @kamwysoc)
- Allow passing of nil values to Equal and Identical matchers
- Added out of the box comparison support for
UInt
- Fixed issues with comparing dictionary or array with a different yielded an incorrect message
- Added out of the box system classes that support
MockEquatable
(thanks @karolus) - Allow specifying none or any arguments when verifying calls (see here for details)
- Added additional
ClosureMatcher
andNotMatcher
(see here for details)
- BREAKING Changed
MockEquatable
equation function toequalTo(other: Any)
. This allows to record any type of value, not just types that conform toMockEquatable
, greatly increasing how versatile this framework is - Added
InstanceOf<T>
matcher - Added
EqualTo
andIdenticalTo
matchers - Fixed issue where matching dictionaries with subset of equal keys could be successful, even if they contained different amount of entires (Thanks @karolus for spotting this!)
- Added convenience extension for
MockEquatable
to simplify matching of types that conform toEquatable
- Added extension for Float type
- Added extension for URL/NSURL types
- Better Carthage support
- Initial release