{"action":"closed","issue":{"url":"https://api.github.com/repos/peridot-php/peridot-prophecy-plugin/issues/1","labels_url":"https://api.github.com/repos/peridot-php/peridot-prophecy-plugin/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/peridot-php/peridot-prophecy-plugin/issues/1/comments","events_url":"https://api.github.com/repos/peridot-php/peridot-prophecy-plugin/issues/1/events","html_url":"https://github.com/peridot-php/peridot-prophecy-plugin/issues/1","id":48934311,"number":1,"title":"Consider injecting based on type hints","user":{"login":"brianium","id":636651,"avatar_url":"https://avatars.githubusercontent.com/u/636651?v=3","gravatar_id":"","url":"https://api.github.com/users/brianium","html_url":"https://github.com/brianium","followers_url":"https://api.github.com/users/brianium/followers","following_url":"https://api.github.com/users/brianium/following{/other_user}","gists_url":"https://api.github.com/users/brianium/gists{/gist_id}","starred_url":"https://api.github.com/users/brianium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianium/subscriptions","organizations_url":"https://api.github.com/users/brianium/orgs","repos_url":"https://api.github.com/users/brianium/repos","events_url":"https://api.github.com/users/brianium/events{/privacy}","received_events_url":"https://api.github.com/users/brianium/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/peridot-php/peridot-prophecy-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"brianium","id":636651,"avatar_url":"https://avatars.githubusercontent.com/u/636651?v=3","gravatar_id":"","url":"https://api.github.com/users/brianium","html_url":"https://github.com/brianium","followers_url":"https://api.github.com/users/brianium/followers","following_url":"https://api.github.com/users/brianium/following{/other_user}","gists_url":"https://api.github.com/users/brianium/gists{/gist_id}","starred_url":"https://api.github.com/users/brianium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianium/subscriptions","organizations_url":"https://api.github.com/users/brianium/orgs","repos_url":"https://api.github.com/users/brianium/repos","events_url":"https://api.github.com/users/brianium/events{/privacy}","received_events_url":"https://api.github.com/users/brianium/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-11-15T22:03:43Z","updated_at":"2015-02-12T14:37:17Z","closed_at":"2015-02-12T14:37:17Z","body":"If a test definition contains a type hinted argument, it could potentially be injected as a mock.  Not sold on it yet. Just documenting here:\n\n```php\ndescribe (\"a thing\", function (MyObject $obj) {\n    // $obj is a mock of MyObject\n});\n```"}}