OCMVerify failing with array parameters

Discussion of the OCMock framework. If you have patches we would prefer you to send them to the mailing list, but attaching them to a topic is possible, too.

OCMVerify failing with array parameters

Postby jgilbert » 30 Sep 2014, 17:52

Using Xcode 6.0.1 the following test fails, whereas it run successfully with Xcode 5.1.1:

@protocol Foo <NSObject>
- (void)process:(NSArray*)data;
@end

@implementation FooTests
- (void)testFoo
{
id foo = OCMProtocolMock(@protocol(Foo));
[foo process:@[@0]];
OCMVerify([foo process:@[@0]]);
}
@end

Using Xcode 6.0.1 it fails with this error:
FooTests.m: test failure: -[FooTests testFoo] failed: OCMockObject(Foo): Method process:(
0
) was not invoked.

I have tried this with the iOS 8.0 and iOS 7.1 simulator.
jgilbert
 
Posts: 1
Joined: 30 Sep 2014, 17:42

Return to OCMock