File tree 1 file changed +8
-16
lines changed
1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -259,14 +259,10 @@ public function shouldAllowResolveAfterProgress()
259
259
$ d = new Deferred ();
260
260
261
261
$ mock = $ this ->createCallableMock ();
262
- $ mock
263
- ->expects ($ this ->at (0 ))
264
- ->method ('__invoke ' )
265
- ->with ($ this ->identicalTo (1 ));
266
- $ mock
267
- ->expects ($ this ->at (1 ))
268
- ->method ('__invoke ' )
269
- ->with ($ this ->identicalTo (2 ));
262
+ $ mock ->expects ($ this ->exactly (2 ))->method ('__invoke ' )->withConsecutive (
263
+ array ($ this ->identicalTo (1 )),
264
+ array ($ this ->identicalTo (2 ))
265
+ );
270
266
271
267
$ d
272
268
->promise ()
@@ -290,14 +286,10 @@ public function shouldAllowRejectAfterProgress()
290
286
$ d = new Deferred ();
291
287
292
288
$ mock = $ this ->createCallableMock ();
293
- $ mock
294
- ->expects ($ this ->at (0 ))
295
- ->method ('__invoke ' )
296
- ->with ($ this ->identicalTo (1 ));
297
- $ mock
298
- ->expects ($ this ->at (1 ))
299
- ->method ('__invoke ' )
300
- ->with ($ this ->identicalTo (2 ));
289
+ $ mock ->expects ($ this ->exactly (2 ))->method ('__invoke ' )->withConsecutive (
290
+ array ($ this ->identicalTo (1 )),
291
+ array ($ this ->identicalTo (2 ))
292
+ );
301
293
302
294
$ d
303
295
->promise ()
You can’t perform that action at this time.
0 commit comments