stub - iOS OCMock call back method with parameter -


i want use ocmock such whenever somemethod called argument, calls callbackmethod: argument "dict", nsdictionary. found andcall:onobject: doesn't seem let pass argument. there way desired behavior?

you can use anddo: , execute whatever want in given block.

id yourmock;//... nsdictionary *dictionary;//... id anobject;//...  [[[yourmock stub] anddo:^(nsinvocation *invocation) {     [anobject callbackmethod:dictionary]; }] somemethod]; 

Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -