Skip to content

Instantly share code, notes, and snippets.

@nwg
Created March 7, 2012 07:04
Show Gist options
  • Select an option

  • Save nwg/1991567 to your computer and use it in GitHub Desktop.

Select an option

Save nwg/1991567 to your computer and use it in GitHub Desktop.
Class mocking in objective c
@implementation OCMockObject (TestUtils)
+ (id)classMockForClass:(Class)class {
Class meta = object_getClass(class);
return [self mockForClass:meta];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment