Check out OCMockito Examples by JR. Here is an excerpt:
I got tired of not understanding how OCMockito worked and created the following dirt simple examples to show me how.
SimpleTest.m#import <XCTest/XCTest.h> #import "Handler.h" #import "Transport.h" #import <OCHamcrestIOS/OCHamcrestIOS.h> #import <OCMockitoIOS/OCMockitoIOS.h> @interface...
The full article is available here.