phpspec/prophecy — pull request #115 by docteurklein (2014-07-21 20:30:58+00:00)
Title: [RFC] support for generators

I'm not even sure if this couldn't be applied to Iterators in general, or if it's the correct approach, but at least it resolves parts of the problem of phpspec/phpspec#379.