I'd like to dynamically return a value dependent of a parameter to a mocked method, conceptionally like this:
[realObject stub] myMethod:CAPTUREDARGUMENT) andReturn:myMethod:CAPTUREDARGUMENT];
Or access the invocation in a block like with OCMock:
void (^theBlock)(NSInvocation *) = ^(NSInvocation *invocation) {
/* code that reads and modifies the invocation object */
};
[[[mock stub] andDo:theBlock] someMethod:[OCMArg any]];
Is that possible with Kiwi?