Skip to content

Commit 2c6a4cd

Browse files
Remove table
1 parent 834453f commit 2c6a4cd

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/test-doubles.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -134,34 +134,6 @@ Similarly, if ``m`` had a return type declaration for a scalar type then a retur
134134
value such as ``0`` (for ``int``), ``0.0`` (for ``float``), or ``[]`` (for ``array``)
135135
would be generated.
136136

137-
So far, we have configured simple return values using ``willReturn($value)``.
138-
This is a shorthand syntax provided for convenience. :numref:`test-doubles.test-stubs.shorthands`
139-
shows the available stubbing shorthands alongside their longer counterparts.
140-
141-
.. rst-class:: table
142-
.. list-table:: Stubbing shorthands
143-
:name: test-doubles.test-stubs.shorthands
144-
:header-rows: 1
145-
146-
* - short hand
147-
- longer syntax
148-
* - ``willReturn($value)``
149-
- ``will($this->returnValue($value))``
150-
* - ``willReturnArgument($argumentIndex)``
151-
- ``will($this->returnArgument($argumentIndex))``
152-
* - ``willReturnCallback($callback)``
153-
- ``will($this->returnCallback($callback))``
154-
* - ``willReturnMap($valueMap)``
155-
- ``will($this->returnValueMap($valueMap))``
156-
* - ``willReturnOnConsecutiveCalls($value1, $value2)``
157-
- ``will($this->onConsecutiveCalls($value1, $value2))``
158-
* - ``willReturnSelf()``
159-
- ``will($this->returnSelf())``
160-
* - ``willThrowException($exception)``
161-
- ``will($this->throwException($exception))``
162-
163-
We can use variations on this longer syntax to achieve more complex stubbing behaviour.
164-
165137
createStubForIntersectionOfInterfaces()
166138
---------------------------------------
167139

0 commit comments

Comments
 (0)