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
19
19
{
20
20
public function will (Stub $ stub ): Identity ;
21
21
22
+ /**
23
+ * @return $this
24
+ */
22
25
public function willReturn (mixed $ value , mixed ...$ nextValues ): self ;
23
26
27
+ /**
28
+ * @return $this
29
+ */
24
30
public function willReturnReference (mixed &$ reference ): self ;
25
31
26
32
/**
27
33
* @param array<int, array<int, mixed>> $valueMap
34
+ *
35
+ * @return $this
28
36
*/
29
37
public function willReturnMap (array $ valueMap ): self ;
30
38
39
+ /**
40
+ * @return $this
41
+ */
31
42
public function willReturnArgument (int $ argumentIndex ): self ;
32
43
44
+ /**
45
+ * @return $this
46
+ */
33
47
public function willReturnCallback (callable $ callback ): self ;
34
48
49
+ /**
50
+ * @return $this
51
+ */
35
52
public function willReturnSelf (): self ;
36
53
54
+ /**
55
+ * @return $this
56
+ */
37
57
public function willReturnOnConsecutiveCalls (mixed ...$ values ): self ;
38
58
59
+ /**
60
+ * @return $this
61
+ */
39
62
public function willThrowException (Throwable $ exception ): self ;
40
63
}
You can’t perform that action at this time.
0 commit comments