OCMock: Mock Objects for Objective-C
OCMock is an Objective-C implementation of mock objects.
This implementation fully utilises the dynamic nature of Objective-C. It creates mock objects on the fly and uses the trampoline pattern so that you can define expectations and stubs using the same syntax that you use to call methods. No strings, no @selector, just simple method invocations.
link






