File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
src/Framework/MockObject/Runtime/Builder Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -19,22 +19,45 @@ interface InvocationStubber
1919{
2020 public function will (Stub $ stub ): Identity ;
2121
22+ /**
23+ * @return $this
24+ */
2225 public function willReturn (mixed $ value , mixed ...$ nextValues ): self ;
2326
27+ /**
28+ * @return $this
29+ */
2430 public function willReturnReference (mixed &$ reference ): self ;
2531
2632 /**
2733 * @param array<int, array<int, mixed>> $valueMap
34+ *
35+ * @return $this
2836 */
2937 public function willReturnMap (array $ valueMap ): self ;
3038
39+ /**
40+ * @return $this
41+ */
3142 public function willReturnArgument (int $ argumentIndex ): self ;
3243
44+ /**
45+ * @return $this
46+ */
3347 public function willReturnCallback (callable $ callback ): self ;
3448
49+ /**
50+ * @return $this
51+ */
3552 public function willReturnSelf (): self ;
3653
54+ /**
55+ * @return $this
56+ */
3757 public function willReturnOnConsecutiveCalls (mixed ...$ values ): self ;
3858
59+ /**
60+ * @return $this
61+ */
3962 public function willThrowException (Throwable $ exception ): self ;
4063}
You can’t perform that action at this time.
0 commit comments