- Code: Select all
[[[mock stub] ignoringNonObjectArgs] someMethodWithIntArgument:0].andReturn(xxx);
It will work. But the style is Mock 2, not Mock 3. so I suggest to write code like this.
- Code: Select all
OCMStub([mock someMethodWithIntArgument:0]).ignoringNonObjectArgs.andReturn(xxx);
it has the same meaning with the other
So, this is my suggestion. Am I right? or do I miss something? Just fill free to tell me, thank U!