Skip to content

Instantly share code, notes, and snippets.

@Abizern
Last active January 4, 2016 14:42
Show Gist options
  • Select an option

  • Save Abizern/77976b89fc123704088e to your computer and use it in GitHub Desktop.

Select an option

Save Abizern/77976b89fc123704088e to your computer and use it in GitHub Desktop.
Test for OCMock installation into an Xcode project.
//
// MockingTest.m
//
#import <OCMock/OCMock.h>
@interface MockingTest : XCTestCase
@end
@implementation MockingTest
- (void)testOCMockFunctions {
id mock = [OCMockObject mockForClass:[NSString class]];
[[mock expect] uppercaseString];
// Uncomment the following line to make the test pass
//[mock uppercaseString];
[mock verify];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment