{"action":"closed","issue":{"url":"https://api.github.com/repos/eloquent/phony/issues/59","labels_url":"https://api.github.com/repos/eloquent/phony/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/eloquent/phony/issues/59/comments","events_url":"https://api.github.com/repos/eloquent/phony/issues/59/events","html_url":"https://github.com/eloquent/phony/issues/59","id":53481266,"number":59,"title":"Mocking an interface that says it extends Traversable requires adding an iterator to the mock","user":{"login":"koden-km","id":1037307,"avatar_url":"https://avatars.githubusercontent.com/u/1037307?v=3","gravatar_id":"","url":"https://api.github.com/users/koden-km","html_url":"https://github.com/koden-km","followers_url":"https://api.github.com/users/koden-km/followers","following_url":"https://api.github.com/users/koden-km/following{/other_user}","gists_url":"https://api.github.com/users/koden-km/gists{/gist_id}","starred_url":"https://api.github.com/users/koden-km/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koden-km/subscriptions","organizations_url":"https://api.github.com/users/koden-km/orgs","repos_url":"https://api.github.com/users/koden-km/repos","events_url":"https://api.github.com/users/koden-km/events{/privacy}","received_events_url":"https://api.github.com/users/koden-km/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eloquent/phony/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eloquent/phony/labels/language%20feature","name":"language feature","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/eloquent/phony/milestones/5","html_url":"https://github.com/eloquent/phony/milestones/0.3.0","labels_url":"https://api.github.com/repos/eloquent/phony/milestones/5/labels","id":870494,"number":5,"title":"0.3.0","description":"","creator":{"login":"ezzatron","id":100152,"avatar_url":"https://avatars.githubusercontent.com/u/100152?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzatron","html_url":"https://github.com/ezzatron","followers_url":"https://api.github.com/users/ezzatron/followers","following_url":"https://api.github.com/users/ezzatron/following{/other_user}","gists_url":"https://api.github.com/users/ezzatron/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzatron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzatron/subscriptions","organizations_url":"https://api.github.com/users/ezzatron/orgs","repos_url":"https://api.github.com/users/ezzatron/repos","events_url":"https://api.github.com/users/ezzatron/events{/privacy}","received_events_url":"https://api.github.com/users/ezzatron/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":2,"state":"open","created_at":"2014-11-18T01:08:49Z","updated_at":"2015-02-27T03:40:34Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-01-06T05:00:09Z","updated_at":"2015-02-27T03:40:34Z","closed_at":"2015-02-27T03:40:34Z","body":"Example:\r\n```\r\ninterface SomeThingInterface extends \\Traversable\r\n{\r\n}\r\n```\r\n\r\nDoing this will fatal:\r\n```\r\n$this->thing = Phony::mock(SomeThingInterface::class)\r\n```\r\n\r\nWork around requires adding IteratorAggregate as the first argument to the mock types:\r\n```\r\n$this->thing = Phony::mock(\r\n    [\r\n        IteratorAggregate::class,\r\n        SomeThingInterface::class,\r\n    ]\r\n);\r\n```"}}