Improvements:
- Added support for pointer arguments, including
NSError **. - Added support for struct arguments. Thanks to: César Estébanez Tascón
Fixes:
- Drop support for 64-bit iOS because it requires targeting iOS 7.
- Fix crash capturing nil selectors as method parameters. Thanks to: Sergio Padrino
- Fix crash capturing inline blocks as method parameters. Thanks to: Sergio Padrino
30 Oct 2013
Features:
- Added MKTArgumentCaptor to capture arguments:
- Use
captureto capture the argument. This must be used inside of verification. - Use
valueto return the captured value. - Use
allValuesto return an array of all captured values.
- Use
Improvements:
- Changed mock object factory methods to cast to
(id)to eliminate AppCode warnings. - Added support for 64-bit iOS devices.
- Convert primitive arguments to objects using NSInvocation+TKAdditions by Taras Kalapun.
Examples & Documentation:
- Updated examples so they are based on Apple's templates for main target vs. test target. Added CocoaPods examples.
- Eliminated DocSet. Documentation will be in the main README and in the OCMockito wiki, https://github.com/jonreid/OCMockito/wiki/_pages
06 Sep 2013
This release adopts Semantic Versioning (http://semver.org). Thanks to: Jens Nerup
New dependency:
- Requires OCHamcrest 3.0.0.
Features:
- Added support for XCTest. Special thanks to Richard Clem for testing
- Added ability to match block arguments. Supported matchers:
anything()nilValue()notNilValue()sameInstance()
- Added
-descriptionto mock objects to help when debugging.
23 Nov 2012
- Added
atLeast(count)andatLeastOnce()forverifyCount(). Thanks to: Markus Gasser - Handle Class as both argument type and return type. Thanks to: David Hart
- Added support for
-isKindOfClass:to object mocks. Thanks to: Tim Pesce - No more need to specify "Other Linker Flags"! Depending on your project, you may be able to
eliminate:
-lstdc++-ObjC
- Converted source, tests, and examples to ARC
18 Mar 2012
- Added
mockClass(…)which mocks a class object. Thanks to: David Hart - Added
mockObjectAndProtocol(Class, Protocol)which mocks an object of a given class that also implements a given protocol. Thanks to: Kevin Lundberg
09 Mar 2012
- Added
mockProtocol(…)which mocks an object implementing a given protocol. given(…)now supports methods returning float or double. Thanks to: Markus Gasser
verify(…)andverifyCount(…)check that argument is a mock object.- Eliminated
givenPreviousCall. - Changed build configuration to Debug during initial development.
24 Nov 2011 prerelease