{"action":"created","issue":{"url":"https://api.github.com/repos/padraic/mockery/issues/586","repository_url":"https://api.github.com/repos/padraic/mockery","labels_url":"https://api.github.com/repos/padraic/mockery/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/padraic/mockery/issues/586/comments","events_url":"https://api.github.com/repos/padraic/mockery/issues/586/events","html_url":"https://github.com/padraic/mockery/issues/586","id":151004697,"number":586,"title":"Mockery Expectations on Partial Mocks do not work as expected","user":{"login":"kwhat","id":676164,"avatar_url":"https://avatars.githubusercontent.com/u/676164?v=3","gravatar_id":"","url":"https://api.github.com/users/kwhat","html_url":"https://github.com/kwhat","followers_url":"https://api.github.com/users/kwhat/followers","following_url":"https://api.github.com/users/kwhat/following{/other_user}","gists_url":"https://api.github.com/users/kwhat/gists{/gist_id}","starred_url":"https://api.github.com/users/kwhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwhat/subscriptions","organizations_url":"https://api.github.com/users/kwhat/orgs","repos_url":"https://api.github.com/users/kwhat/repos","events_url":"https://api.github.com/users/kwhat/events{/privacy}","received_events_url":"https://api.github.com/users/kwhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-25T23:18:34Z","updated_at":"2016-04-26T08:12:03Z","closed_at":null,"body":"Best I can tell from the docs, the following should constrain the number of calls to getBody to AT LEAST 152345 times.  This test always passes.  It doesn't matter if I call getBody and specify never() or call it 30x with once(), it always passes and does return \"YourMom\" without much trouble.  Please fix this library or spend 5 minutes outlining this special _\"short-bus\"_ case in the partial mocks section of the docs.  P.S. Why does that section of the docs refer back to the Quick start guide and not the other way around?\r\n\r\n        $mockEnv = Slim\\Environment::mock(array(\r\n            \"REQUEST_METHOD\" => \"POST\",\r\n            \"slim.input\" => json_encode(array(\"key\" => \"value\"))\r\n        ));\r\n       $mockRequest = Mockery::mock(\"Slim\\\\Http\\\\Request[getBody]\", array($mockEnv));\r\n       $mockRequest->shouldReceive(\"getBody\")->andReturn(\"YourMom\")->atLeast(152345);\r\n       $mockRequest->getBody();\r\n"},"comment":{"url":"https://api.github.com/repos/padraic/mockery/issues/comments/214663168","html_url":"https://github.com/padraic/mockery/issues/586#issuecomment-214663168","issue_url":"https://api.github.com/repos/padraic/mockery/issues/586","id":214663168,"user":{"login":"davedevelopment","id":61351,"avatar_url":"https://avatars.githubusercontent.com/u/61351?v=3","gravatar_id":"","url":"https://api.github.com/users/davedevelopment","html_url":"https://github.com/davedevelopment","followers_url":"https://api.github.com/users/davedevelopment/followers","following_url":"https://api.github.com/users/davedevelopment/following{/other_user}","gists_url":"https://api.github.com/users/davedevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/davedevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davedevelopment/subscriptions","organizations_url":"https://api.github.com/users/davedevelopment/orgs","repos_url":"https://api.github.com/users/davedevelopment/repos","events_url":"https://api.github.com/users/davedevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/davedevelopment/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T08:12:03Z","updated_at":"2016-04-26T08:12:03Z","body":"Try this:\r\n\r\n``` php\r\n$mockRequest->shouldReceive(\"getBody\")->andReturn(\"YourMom\")->atLeast()->times(152345); \r\n```"}}