@@ -134,34 +134,6 @@ Similarly, if ``m`` had a return type declaration for a scalar type then a retur
134
134
value such as ``0 `` (for ``int ``), ``0.0 `` (for ``float ``), or ``[] `` (for ``array ``)
135
135
would be generated.
136
136
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
-
165
137
createStubForIntersectionOfInterfaces()
166
138
---------------------------------------
167
139
0 commit comments