Created
March 7, 2012 07:04
-
-
Save nwg/1991567 to your computer and use it in GitHub Desktop.
Class mocking in objective c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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