erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Cast mock arguments in OCMVerify* macros #389

Closed dmaclach closed 4 years ago

dmaclach commented 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.

dmaclach commented 4 years ago

I don't think the travis build problem is the fault of this CL. Can somebody kick travis and try again?