phpspec/phpspec2 — pull request #76 by karolsojko (2012-11-22 22:36:14+00:00)
Title: Added MockExpectation return self method for chaining

It's a small thing and don't know if it's actually needed but I found this usefull in chaining methods of mocks.

For example:

This is how it is now:

```php
$mockedObject->firstChainingMethod()->willReturn($mockedObject);
$mockedObject->finalChainingMethod()->willReturn(new \ArrayObject());
```
And this is how it could be nicer:

```php
$mockedObject->firstChainingMethod()->willReturnSelf();
$mockedObject->finalChainingMethod()->willReturn(new \ArrayObject());
```