@@ -36,7 +36,7 @@ abstract protected static function assert(array $arguments, mixed $responses = n
36
36
public function testSingle (): void
37
37
{
38
38
$ this ->mock
39
- ->expects (self :: exactly (3 ))
39
+ ->expects ($ this -> exactly (3 ))
40
40
->method ('single ' )
41
41
->will (static ::assert ([
42
42
['1 ' ],
@@ -52,15 +52,15 @@ public function testSingle(): void
52
52
public function testEmpty (): void
53
53
{
54
54
$ this ->mock
55
- ->expects (self :: exactly (0 ))
55
+ ->expects ($ this -> exactly (0 ))
56
56
->method ('single ' )
57
57
->will (static ::assert ([], true ));
58
58
}
59
59
60
60
public function testSingleResponse (): void
61
61
{
62
62
$ this ->mock
63
- ->expects (self :: exactly (3 ))
63
+ ->expects ($ this -> exactly (3 ))
64
64
->method ('single ' )
65
65
->will (static ::assert ([
66
66
['1 ' ],
@@ -80,7 +80,7 @@ public function testSingleResponse(): void
80
80
public function testSingleSameResponse (): void
81
81
{
82
82
$ this ->mock
83
- ->expects (self :: exactly (3 ))
83
+ ->expects ($ this -> exactly (3 ))
84
84
->method ('single ' )
85
85
->will (static ::assert (
86
86
[
@@ -98,11 +98,11 @@ public function testSingleSameResponse(): void
98
98
99
99
public function testSingleFailResponseLength (): void
100
100
{
101
- self :: expectException (LengthException::class);
102
- self :: expectExceptionMessage ('Arguments and responses arrays must be same length ' );
101
+ $ this -> expectException (LengthException::class);
102
+ $ this -> expectExceptionMessage ('Arguments and responses arrays must be same length ' );
103
103
104
104
$ this ->mock
105
- ->expects (self :: any ())
105
+ ->expects ($ this -> any ())
106
106
->method ('single ' )
107
107
->will (static ::assert ([
108
108
['1 ' ],
@@ -115,11 +115,11 @@ public function testSingleFailResponseLength(): void
115
115
116
116
public function testSingleExceptionResponse (): void
117
117
{
118
- self :: expectException (RuntimeException::class);
119
- self :: expectExceptionMessage ('Custom error ' );
118
+ $ this -> expectException (RuntimeException::class);
119
+ $ this -> expectExceptionMessage ('Custom error ' );
120
120
121
121
$ this ->mock
122
- ->expects (self :: any ())
122
+ ->expects ($ this -> any ())
123
123
->method ('single ' )
124
124
->will (static ::assert ([
125
125
['1 ' ],
@@ -138,7 +138,7 @@ public function testSingleExceptionResponse(): void
138
138
public function testSingleStubResponse (): void
139
139
{
140
140
$ this ->mock
141
- ->expects (self :: any ())
141
+ ->expects ($ this -> any ())
142
142
->method ('single ' )
143
143
->will (static ::assert ([
144
144
['1 ' ],
@@ -158,7 +158,7 @@ public function testSingleStubResponse(): void
158
158
public function testSingleWithOptional (): void
159
159
{
160
160
$ this ->mock
161
- ->expects (self :: exactly (3 ))
161
+ ->expects ($ this -> exactly (3 ))
162
162
->method ('singleWithOptional ' )
163
163
->will (static ::assert ([
164
164
['1 ' ],
@@ -174,7 +174,7 @@ public function testSingleWithOptional(): void
174
174
public function testSingleWithDefaultValue (): void
175
175
{
176
176
$ this ->mock
177
- ->expects (self :: exactly (3 ))
177
+ ->expects ($ this -> exactly (3 ))
178
178
->method ('singleWithDefault ' )
179
179
->will (static ::assert ([
180
180
['1 ' ],
@@ -190,7 +190,7 @@ public function testSingleWithDefaultValue(): void
190
190
public function testDouble (): void
191
191
{
192
192
$ this ->mock
193
- ->expects (self :: exactly (3 ))
193
+ ->expects ($ this -> exactly (3 ))
194
194
->method ('double ' )
195
195
->will (static ::assert ([
196
196
['1.1 ' , '1.2 ' ],
@@ -206,7 +206,7 @@ public function testDouble(): void
206
206
public function testDoubleWithOptional (): void
207
207
{
208
208
$ this ->mock
209
- ->expects (self :: exactly (3 ))
209
+ ->expects ($ this -> exactly (3 ))
210
210
->method ('doubleWithOptional ' )
211
211
->will (static ::assert ([
212
212
['1.1 ' , '1.2 ' ],
@@ -222,7 +222,7 @@ public function testDoubleWithOptional(): void
222
222
public function testDoubleWithDefault (): void
223
223
{
224
224
$ this ->mock
225
- ->expects (self :: exactly (3 ))
225
+ ->expects ($ this -> exactly (3 ))
226
226
->method ('doubleWithDefault ' )
227
227
->will (static ::assert ([
228
228
['1.1 ' , '1.2 ' ],
@@ -238,7 +238,7 @@ public function testDoubleWithDefault(): void
238
238
public function testVariadic (): void
239
239
{
240
240
$ this ->mock
241
- ->expects (self :: exactly (3 ))
241
+ ->expects ($ this -> exactly (3 ))
242
242
->method ('variadic ' )
243
243
->will (static ::assert ([
244
244
['1.1 ' , '1.2 ' , '1.3 ' ],
@@ -254,7 +254,7 @@ public function testVariadic(): void
254
254
public function testVariadicConstraint (): void
255
255
{
256
256
$ this ->mock
257
- ->expects (self :: exactly (4 ))
257
+ ->expects ($ this -> exactly (4 ))
258
258
->method ('variadic ' )
259
259
->will (static ::assert ([
260
260
[new IsAnything (), '1.2 ' , '1.3 ' ],
@@ -275,11 +275,11 @@ public function testVariadicConstraint(): void
275
275
276
276
public function testVariadicFailMatch (): void
277
277
{
278
- self :: expectException (ExpectationFailedException::class);
279
- self :: expectExceptionMessage ("Parameter #2 for invocation #1 does not match expected value. \nFailed asserting that null matches expected '2.3' " );
278
+ $ this -> expectException (ExpectationFailedException::class);
279
+ $ this -> expectExceptionMessage ("Parameter #2 for invocation #1 does not match expected value. \nFailed asserting that null matches expected '2.3' " );
280
280
281
281
$ this ->mock
282
- ->expects (self :: exactly (2 ))
282
+ ->expects ($ this -> exactly (2 ))
283
283
->method ('variadic ' )
284
284
->will (static ::assert ([
285
285
['1.1 ' , '1.2 ' , '1.3 ' ],
0 commit comments