{"action":"created","issue":{"url":"https://api.github.com/repos/jonreid/OCMockito/issues/108","labels_url":"https://api.github.com/repos/jonreid/OCMockito/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/jonreid/OCMockito/issues/108/comments","events_url":"https://api.github.com/repos/jonreid/OCMockito/issues/108/events","html_url":"https://github.com/jonreid/OCMockito/issues/108","id":96822881,"number":108,"title":"MKTArgumentCaptor & OCHamcrest","user":{"login":"paweldudek","id":968513,"avatar_url":"https://avatars.githubusercontent.com/u/968513?v=3","gravatar_id":"","url":"https://api.github.com/users/paweldudek","html_url":"https://github.com/paweldudek","followers_url":"https://api.github.com/users/paweldudek/followers","following_url":"https://api.github.com/users/paweldudek/following{/other_user}","gists_url":"https://api.github.com/users/paweldudek/gists{/gist_id}","starred_url":"https://api.github.com/users/paweldudek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paweldudek/subscriptions","organizations_url":"https://api.github.com/users/paweldudek/orgs","repos_url":"https://api.github.com/users/paweldudek/repos","events_url":"https://api.github.com/users/paweldudek/events{/privacy}","received_events_url":"https://api.github.com/users/paweldudek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T14:03:17Z","updated_at":"2015-09-25T02:30:16Z","closed_at":null,"body":"Short question before I start firing pull requests ;)\r\n\r\n`MKTCapturingMatcher` uses a \r\n\r\n```\r\n- (void)captureArgument:(id)arg\r\n{\r\n    if (!arg)\r\n        arg = [NSNull null];\r\n    [self.arguments addObject:arg];\r\n}\r\n```\r\n\r\nmethod to record passed arguments. This is method is then tied into OCMockito code itself, meaning that this matcher won't work outside OCMockito world. \r\n\r\nIs there any reason why `matches:` method from OCHamcrest matcher interface is not used? It would then look like this: \r\n\r\n```\r\n- (void)matches:(id)arg\r\n{\r\n    if (!arg)\r\n        arg = [NSNull null];\r\n    [self.arguments addObject:arg];\r\n    return YES;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jonreid/OCMockito/issues/comments/143106799","html_url":"https://github.com/jonreid/OCMockito/issues/108#issuecomment-143106799","issue_url":"https://api.github.com/repos/jonreid/OCMockito/issues/108","id":143106799,"user":{"login":"jonreid","id":111044,"avatar_url":"https://avatars.githubusercontent.com/u/111044?v=3","gravatar_id":"","url":"https://api.github.com/users/jonreid","html_url":"https://github.com/jonreid","followers_url":"https://api.github.com/users/jonreid/followers","following_url":"https://api.github.com/users/jonreid/following{/other_user}","gists_url":"https://api.github.com/users/jonreid/gists{/gist_id}","starred_url":"https://api.github.com/users/jonreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonreid/subscriptions","organizations_url":"https://api.github.com/users/jonreid/orgs","repos_url":"https://api.github.com/users/jonreid/repos","events_url":"https://api.github.com/users/jonreid/events{/privacy}","received_events_url":"https://api.github.com/users/jonreid/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T02:30:16Z","updated_at":"2015-09-25T02:30:16Z","body":"HCArgumentCaptor is alive! Next step: deprecate MKTArgumentCaptor and MKTCapturingMatcher"}}