{"action":"created","issue":{"url":"https://api.github.com/repos/mockery/mockery/issues/1000","repository_url":"https://api.github.com/repos/mockery/mockery","labels_url":"https://api.github.com/repos/mockery/mockery/issues/1000/labels{/name}","comments_url":"https://api.github.com/repos/mockery/mockery/issues/1000/comments","events_url":"https://api.github.com/repos/mockery/mockery/issues/1000/events","html_url":"https://github.com/mockery/mockery/pull/1000","id":490222942,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE0ODY5NDI2","number":1000,"title":"Improve exception debugging","user":{"login":"KmeCnin","id":6616300,"node_id":"MDQ6VXNlcjY2MTYzMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/6616300?v=4","gravatar_id":"","url":"https://api.github.com/users/KmeCnin","html_url":"https://github.com/KmeCnin","followers_url":"https://api.github.com/users/KmeCnin/followers","following_url":"https://api.github.com/users/KmeCnin/following{/other_user}","gists_url":"https://api.github.com/users/KmeCnin/gists{/gist_id}","starred_url":"https://api.github.com/users/KmeCnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KmeCnin/subscriptions","organizations_url":"https://api.github.com/users/KmeCnin/orgs","repos_url":"https://api.github.com/users/KmeCnin/repos","events_url":"https://api.github.com/users/KmeCnin/events{/privacy}","received_events_url":"https://api.github.com/users/KmeCnin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-09-06T09:22:23Z","updated_at":"2019-11-05T05:24:39Z","closed_at":"2019-11-05T05:24:32Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/mockery/mockery/pulls/1000","html_url":"https://github.com/mockery/mockery/pull/1000","diff_url":"https://github.com/mockery/mockery/pull/1000.diff","patch_url":"https://github.com/mockery/mockery/pull/1000.patch"},"body":"It is often really difficult to understand and be aware of all available handlers for a given method call expectation.\r\nEspecially when the difference comes only from an entity inner property.\r\n\r\nHere we display a list of all available handlers for the given method and for each one a diff.\r\nExample:\r\n```\r\n1) Foo::testItems\r\nMockery\\Exception\\NoMatchingExpectationException: No matching handler found for Mockery_2_Bar::get(object(Hamcrest\\Core\\IsEqual)). Either the method was unexpected or its arguments matched no expected argument list for this method.\r\nHere is the list of available expectations.\r\n\r\nMockery_2_Bar::get with arguments:\r\n--- Expected\r\n+++ Actual\r\n@@ @@\r\n Array (\r\n     0 => Hamcrest\\Core\\IsEqual Object (\r\n         '_item' => Baz Object (\r\n-            'id' => 'foo'\r\n+            'id' => '223918237618995'\r\n         )\r\n     )\r\n )\r\n\r\nMockery_2_Foo::get with arguments:\r\n--- Expected\r\n+++ Actual\r\n@@ @@\r\n Array (\r\n     0 => Hamcrest\\Core\\IsEqual Object (\r\n         '_item' => Bar Object (\r\n-            'id' => 'bar'\r\n+            'id' => '223918237618995'\r\n         )\r\n     )\r\n-    1 => Hamcrest\\Core\\IsEqual Object (...)\r\n )\r\n```\r\n\r\nAlso when the diff consists only in a difference of object reference that would normally result in an empty diff, we display the object ref instead:\r\n```\r\nThere was 1 error:\r\n\r\n1) Foo::test\r\nMockery\\Exception\\NoMatchingExpectationException: No matching expectation found for Mockery_0_Bar::fetch(object(Baz), 'me', ['projection' => '(id)']). Either the method was unexpected or its arguments matched no expected argument list for this method.\r\n\r\nHere is the list of available expectations and their diff with actual input:\r\n\r\nMockery_0_Foo::fetch with arguments\r\n--- Expected\r\n+++ Actual\r\n@@ @@\r\n Array (\r\n-    0 => 'Baz#ref_000000007372a668000000003e36882c'\r\n+    0 => 'Baz#ref_000000007372a677000000003e36882c'\r\n     1 => Hamcrest\\Core\\IsEqual Object (...)\r\n     2 => Hamcrest\\Core\\IsEqual Object (...)\r\n )\r\n```"},"comment":{"url":"https://api.github.com/repos/mockery/mockery/issues/comments/549667789","html_url":"https://github.com/mockery/mockery/pull/1000#issuecomment-549667789","issue_url":"https://api.github.com/repos/mockery/mockery/issues/1000","id":549667789,"node_id":"MDEyOklzc3VlQ29tbWVudDU0OTY2Nzc4OQ==","user":{"login":"robertbasic","id":166625,"node_id":"MDQ6VXNlcjE2NjYyNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/166625?v=4","gravatar_id":"","url":"https://api.github.com/users/robertbasic","html_url":"https://github.com/robertbasic","followers_url":"https://api.github.com/users/robertbasic/followers","following_url":"https://api.github.com/users/robertbasic/following{/other_user}","gists_url":"https://api.github.com/users/robertbasic/gists{/gist_id}","starred_url":"https://api.github.com/users/robertbasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertbasic/subscriptions","organizations_url":"https://api.github.com/users/robertbasic/orgs","repos_url":"https://api.github.com/users/robertbasic/repos","events_url":"https://api.github.com/users/robertbasic/events{/privacy}","received_events_url":"https://api.github.com/users/robertbasic/received_events","type":"User","site_admin":false},"created_at":"2019-11-05T05:24:39Z","updated_at":"2019-11-05T05:24:39Z","author_association":"COLLABORATOR","body":"Thanks @KmeCnin!"}}
{"actor":{"display_login":"robertbasic"}}