{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/MockeryModule/issues/10","repository_url":"https://api.github.com/repos/Codeception/MockeryModule","labels_url":"https://api.github.com/repos/Codeception/MockeryModule/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/MockeryModule/issues/10/comments","events_url":"https://api.github.com/repos/Codeception/MockeryModule/issues/10/events","html_url":"https://github.com/Codeception/MockeryModule/issues/10","id":131661284,"number":10,"title":"Can't mock object methods with boolen return types","user":{"login":"ctrlaltdylan","id":2694734,"avatar_url":"https://avatars.githubusercontent.com/u/2694734?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrlaltdylan","html_url":"https://github.com/ctrlaltdylan","followers_url":"https://api.github.com/users/ctrlaltdylan/followers","following_url":"https://api.github.com/users/ctrlaltdylan/following{/other_user}","gists_url":"https://api.github.com/users/ctrlaltdylan/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrlaltdylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrlaltdylan/subscriptions","organizations_url":"https://api.github.com/users/ctrlaltdylan/orgs","repos_url":"https://api.github.com/users/ctrlaltdylan/repos","events_url":"https://api.github.com/users/ctrlaltdylan/events{/privacy}","received_events_url":"https://api.github.com/users/ctrlaltdylan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T14:42:03Z","updated_at":"2016-02-05T22:33:47Z","closed_at":"2016-02-05T22:33:47Z","body":"Unable to mock any methods that have a boolean return type. Need to do more research to see if it's breaking on other primitives.\r\n\r\nExample:\r\n\r\n```\r\npublic function toBeTested() : bool\r\n{\r\n   return true;\r\n}\r\n```\r\n\r\nThe mocked version does not include the `bool` return type and breaks."},"comment":{"url":"https://api.github.com/repos/Codeception/MockeryModule/issues/comments/180601510","html_url":"https://github.com/Codeception/MockeryModule/issues/10#issuecomment-180601510","issue_url":"https://api.github.com/repos/Codeception/MockeryModule/issues/10","id":180601510,"user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T22:33:47Z","updated_at":"2016-02-05T22:33:47Z","body":"Is it just the bool type or other types as well? See https://github.com/padraic/mockery/issues/511.\r\n\r\nAnyway this is probably not relevant to this package. This is just an itegration of Mockery to Codeception. The bug itself is most likely in Mockery.\r\n\r\nI suggest trying the master branch of Mockery and if it doesn't help, report an issue in the Mockery repository (although it is possibly a duplicate of the issue I linked above)."}}