For a selector like this:
-(void) callFoo:(NSError**)error;
How can I get an expectation like the below to work? ARC is not liking this kind of expectation, and I don't want to disable ARC for the entire unit test file!
[[mockObject expect] callFoo:[OCMArg anyPointer]];
anyPointer returns void *, but under ARC, double pointers to Objective-C objects are implicitly qualified with __autoreleasing.
Try changing it to:
[[mockObject expect] callFoo:(NSError * __autoreleasing *)[OCMArg anyPointer]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With