I am trying to write an block of code using OCMock\'s stub andDo method.
In this case UIImageView extension class is being tested. I want to check that the exte
In my case this was happening because I introduced another parameter to this method, so the block parameter got shifted by one.
I fixed it by changing [inv getArgument:&op atIndex:2] to [inv getArgument:&op atIndex:3]
[inv getArgument:&op atIndex:2]
[inv getArgument:&op atIndex:3]