@@ -223,7 +223,7 @@ public function testPingAfterPingWillNotStartIdleTimerWhenFirstPingResolves()
223
223
224
224
$ this ->redis ->ping ();
225
225
$ this ->redis ->ping ();
226
- $ deferred ->resolve ();
226
+ $ deferred ->resolve (null );
227
227
}
228
228
229
229
public function testPingAfterPingWillStartAndCancelIdleTimerWhenSecondPingStartsAfterFirstResolves ()
@@ -242,14 +242,14 @@ public function testPingAfterPingWillStartAndCancelIdleTimerWhenSecondPingStarts
242
242
$ this ->loop ->expects ($ this ->once ())->method ('cancelTimer ' )->with ($ timer );
243
243
244
244
$ this ->redis ->ping ();
245
- $ deferred ->resolve ();
245
+ $ deferred ->resolve (null );
246
246
$ this ->redis ->ping ();
247
247
}
248
248
249
249
public function testPingFollowedByIdleTimerWillCloseUnderlyingConnectionWithoutCloseEvent ()
250
250
{
251
251
$ client = $ this ->createMock (StreamingClient::class);
252
- $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve ());
252
+ $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
253
253
$ client ->expects ($ this ->once ())->method ('close ' );
254
254
255
255
$ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn (\React \Promise \resolve ($ client ));
@@ -312,7 +312,7 @@ public function testCloseAfterPingWillEmitCloseWithoutErrorWhenUnderlyingClientC
312
312
public function testCloseAfterPingWillCloseUnderlyingClientConnectionWhenAlreadyResolved ()
313
313
{
314
314
$ client = $ this ->createMock (StreamingClient::class);
315
- $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve ());
315
+ $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
316
316
$ client ->expects ($ this ->once ())->method ('close ' );
317
317
318
318
$ deferred = new Deferred ();
@@ -337,7 +337,7 @@ public function testCloseAfterPingWillCancelIdleTimerWhenPingIsAlreadyResolved()
337
337
$ this ->loop ->expects ($ this ->once ())->method ('cancelTimer ' )->with ($ timer );
338
338
339
339
$ this ->redis ->ping ();
340
- $ deferred ->resolve ();
340
+ $ deferred ->resolve (null );
341
341
$ this ->redis ->close ();
342
342
}
343
343
@@ -414,7 +414,7 @@ public function testEmitsNoErrorEventWhenUnderlyingClientEmitsError()
414
414
$ error = new \RuntimeException ();
415
415
416
416
$ client = $ this ->createMock (StreamingClient::class);
417
- $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve ());
417
+ $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
418
418
419
419
$ deferred = new Deferred ();
420
420
$ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn ($ deferred ->promise ());
@@ -429,7 +429,7 @@ public function testEmitsNoErrorEventWhenUnderlyingClientEmitsError()
429
429
public function testEmitsNoCloseEventWhenUnderlyingClientEmitsClose ()
430
430
{
431
431
$ client = $ this ->createMock (StreamingClient::class);
432
- $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve ());
432
+ $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
433
433
434
434
$ deferred = new Deferred ();
435
435
$ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn ($ deferred ->promise ());
@@ -463,7 +463,7 @@ public function testEmitsNoCloseEventButWillCancelIdleTimerWhenUnderlyingConnect
463
463
$ this ->redis ->on ('close ' , $ this ->expectCallableNever ());
464
464
465
465
$ this ->redis ->ping ();
466
- $ deferred ->resolve ();
466
+ $ deferred ->resolve (null );
467
467
468
468
$ this ->assertTrue (is_callable ($ closeHandler ));
469
469
$ closeHandler ();
@@ -473,7 +473,7 @@ public function testEmitsMessageEventWhenUnderlyingClientEmitsMessageForPubSubCh
473
473
{
474
474
$ messageHandler = null ;
475
475
$ client = $ this ->createMock (StreamingClient::class);
476
- $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve ());
476
+ $ client ->expects ($ this ->once ())->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
477
477
$ client ->expects ($ this ->any ())->method ('on ' )->willReturnCallback (function ($ event , $ callback ) use (&$ messageHandler ) {
478
478
if ($ event === 'message ' ) {
479
479
$ messageHandler = $ callback ;
@@ -495,7 +495,7 @@ public function testEmitsUnsubscribeAndPunsubscribeEventsWhenUnderlyingClientClo
495
495
{
496
496
$ allHandler = null ;
497
497
$ client = $ this ->createMock (StreamingClient::class);
498
- $ client ->expects ($ this ->exactly (6 ))->method ('__call ' )->willReturn (\React \Promise \resolve ());
498
+ $ client ->expects ($ this ->exactly (6 ))->method ('__call ' )->willReturn (\React \Promise \resolve (null ));
499
499
$ client ->expects ($ this ->any ())->method ('on ' )->willReturnCallback (function ($ event , $ callback ) use (&$ allHandler ) {
500
500
if (!isset ($ allHandler [$ event ])) {
501
501
$ allHandler [$ event ] = $ callback ;
0 commit comments