Codeception/Codeception — pull request #1300 by nathanmac (2014-08-14 10:04:13+00:00)
Title: Add functionality to Stub to allow ConsecutiveCallStub

Add functionality to support ConsecutiveCallStub - PHPUnit via the Stub Class

- Useful for testing recursive functions

```php
Stub::consecutive('david', 'emma', 'sam', 'amy')));
$user->getName(); //david
$user->getName(); //emma
$user->getName(); //sam
$user->getName(); //amy
?>
```

http://phpunit.de/manual/3.6/en/test-doubles.html#test-doubles.stubs.examples.StubTest7.php