Skip to content

Commit

Permalink
document andReturnSelf
Browse files Browse the repository at this point in the history
Implemented in:
#306
  • Loading branch information
countless-integers committed Nov 17, 2016
1 parent 8569c87 commit e7b5db8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/expectations.rst
Expand Up @@ -132,6 +132,12 @@ the method. The return value from the closure is then returned. Useful for
some dynamic processing of arguments into related concrete results. Closures
can queued by passing them as extra parameters as for ``andReturn()``.

.. code-block:: php
andReturnSelf()
Set the return value to the mocked class name. Useful for mocking fluid interfaces.

.. note::

You cannot currently mix ``andReturnUsing()`` with ``andReturn()``.
Expand Down

0 comments on commit e7b5db8

Please sign in to comment.