Passing an OCMock object to a method where the function calls isKindOfClass. However for unit test, the value returned is not of the mocked class but OCMockObject
Here is a whole article explaining how exactly to write the OCMock isKindOfClass
method (it is not existing by default) and how to use it: http://blog.carbonfive.com/2009/02/17/custom-constraints-for-ocmock/
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