phpspec / prophecy

Highly opinionated mocking framework for PHP 5.3+
MIT License
8.53k stars 241 forks source link

Support `iterable` return type #501

Open ciaranmcnulty opened 4 years ago

ciaranmcnulty commented 4 years ago

We don't set a default promise for iterable return types; I'd suggest Generator makes sense

stof commented 4 years ago

I'd suggest array(), which is even simpler :smile: