{"action":"closed","issue":{"url":"https://api.github.com/repos/padraic/mockery/issues/177","labels_url":"https://api.github.com/repos/padraic/mockery/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/padraic/mockery/issues/177/comments","events_url":"https://api.github.com/repos/padraic/mockery/issues/177/events","html_url":"https://github.com/padraic/mockery/issues/177","id":15628090,"number":177,"title":"shouldIgnoreMissing() not working on instance mocks","user":{"login":"david0","id":1685610,"avatar_url":"https://avatars.githubusercontent.com/u/1685610?v=3","gravatar_id":"","url":"https://api.github.com/users/david0","html_url":"https://github.com/david0","followers_url":"https://api.github.com/users/david0/followers","following_url":"https://api.github.com/users/david0/following{/other_user}","gists_url":"https://api.github.com/users/david0/gists{/gist_id}","starred_url":"https://api.github.com/users/david0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david0/subscriptions","organizations_url":"https://api.github.com/users/david0/orgs","repos_url":"https://api.github.com/users/david0/repos","events_url":"https://api.github.com/users/david0/events{/privacy}","received_events_url":"https://api.github.com/users/david0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/padraic/mockery/labels/feature%20request","name":"feature request","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2013-06-17T11:39:22Z","updated_at":"2015-02-20T12:40:40Z","closed_at":"2015-02-20T12:40:40Z","body":"`shouldIgnoreMissing()` does not work on mock objects created using instance mocks.\r\n\r\n```php\r\n$m = m::mock('overload:A');\r\n$m->shouldIgnoreMissing();\r\n\r\n$a = new A();\r\n$a->doSomething();\r\n```\r\nleads to \r\n`BadMethodCallException: Method ::doSomething() does not exist on this mock object`\r\n\r\nI think it this function would be pretty useful, especially for instance mock objects. Also it looks a little inconsistent, since one can set expectations using `shouldReceive` on all instances, but `shouldIgnoreMissing` only affects the current mock object.\r\n"}}