14
14
use PHPUnit \Framework \MockObject \Stub \Stub ;
15
15
use Throwable ;
16
16
17
- /**
18
- * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
19
- */
20
17
interface InvocationStubber
21
18
{
22
19
/**
20
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
21
+ *
23
22
* @param Constraint|non-empty-string|PropertyHook $constraint
24
23
*
25
24
* @return $this
26
25
*/
27
26
public function method (Constraint |PropertyHook |string $ constraint ): self ;
28
27
29
28
/**
29
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
30
+ *
30
31
* @param non-empty-string $id
31
32
*
32
33
* @return $this
33
34
*/
34
35
public function id (string $ id ): self ;
35
36
36
37
/**
38
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
39
+ *
37
40
* @param non-empty-string $id
38
41
*
39
42
* @return $this
@@ -46,53 +49,73 @@ public function after(string $id): self;
46
49
public function with (mixed ...$ arguments ): self ;
47
50
48
51
/**
52
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
53
+ *
49
54
* @return $this
50
55
*/
51
56
public function withAnyParameters (): self ;
52
57
53
58
/**
59
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
60
+ *
54
61
* @return $this
55
62
*/
56
63
public function will (Stub $ stub ): self ;
57
64
58
65
/**
66
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
67
+ *
59
68
* @return $this
60
69
*/
61
70
public function willReturn (mixed $ value , mixed ...$ nextValues ): self ;
62
71
63
72
/**
73
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
74
+ *
64
75
* @return $this
65
76
*/
66
77
public function willReturnReference (mixed &$ reference ): self ;
67
78
68
79
/**
80
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
81
+ *
69
82
* @param array<int, array<int, mixed>> $valueMap
70
83
*
71
84
* @return $this
72
85
*/
73
86
public function willReturnMap (array $ valueMap ): self ;
74
87
75
88
/**
89
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
90
+ *
76
91
* @return $this
77
92
*/
78
93
public function willReturnArgument (int $ argumentIndex ): self ;
79
94
80
95
/**
96
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
97
+ *
81
98
* @return $this
82
99
*/
83
100
public function willReturnCallback (callable $ callback ): self ;
84
101
85
102
/**
103
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
104
+ *
86
105
* @return $this
87
106
*/
88
107
public function willReturnSelf (): self ;
89
108
90
109
/**
110
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
111
+ *
91
112
* @return $this
92
113
*/
93
114
public function willReturnOnConsecutiveCalls (mixed ...$ values ): self ;
94
115
95
116
/**
117
+ * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
118
+ *
96
119
* @return $this
97
120
*/
98
121
public function willThrowException (Throwable $ exception ): self ;
0 commit comments