Closed dmaclach closed 4 years ago
In cases where people are doing things like
NSBundle *foo = OCClassMock([NSBundle class])
or
id bar = OCClassMock([MyClass class])
calling OCMVerifyAll or OCMVerifyAllWithDelay requires a cast to (OCMockObject *) so that the verify methods can be found. This makes it so callers don't have to constantly do OCMVerifyAll((id)bar) or something similar.
I don't think the travis build problem is the fault of this CL. Can somebody kick travis and try again?
In cases where people are doing things like
NSBundle *foo = OCClassMock([NSBundle class])
or
id bar = OCClassMock([MyClass class])
calling OCMVerifyAll or OCMVerifyAllWithDelay requires a cast to (OCMockObject *) so that the verify methods can be found. This makes it so callers don't have to constantly do OCMVerifyAll((id)bar) or something similar.