@@ -223,7 +223,7 @@ public function testPingAfterPingWillNotStartIdleTimerWhenFirstPingResolves()
223223
224224 $ this ->redis ->ping ();
225225 $ this ->redis ->ping ();
226- $ deferred ->resolve ();
226+ $ deferred ->resolve (null );
227227 }
228228
229229 public function testPingAfterPingWillStartAndCancelIdleTimerWhenSecondPingStartsAfterFirstResolves ()
@@ -242,14 +242,14 @@ public function testPingAfterPingWillStartAndCancelIdleTimerWhenSecondPingStarts
242242 $ this ->loop ->expects ($ this ->once ())->method ('cancelTimer ' )->with ($ timer );
243243
244244 $ this ->redis ->ping ();
245- $ deferred ->resolve ();
245+ $ deferred ->resolve (null );
246246 $ this ->redis ->ping ();
247247 }
248248
249249 public function testPingFollowedByIdleTimerWillCloseUnderlyingConnectionWithoutCloseEvent ()
250250 {
251251 $ 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 ));
253253 $ client ->expects ($ this ->once ())->method ('close ' );
254254
255255 $ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn (\React \Promise \resolve ($ client ));
@@ -312,7 +312,7 @@ public function testCloseAfterPingWillEmitCloseWithoutErrorWhenUnderlyingClientC
312312 public function testCloseAfterPingWillCloseUnderlyingClientConnectionWhenAlreadyResolved ()
313313 {
314314 $ 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 ));
316316 $ client ->expects ($ this ->once ())->method ('close ' );
317317
318318 $ deferred = new Deferred ();
@@ -337,7 +337,7 @@ public function testCloseAfterPingWillCancelIdleTimerWhenPingIsAlreadyResolved()
337337 $ this ->loop ->expects ($ this ->once ())->method ('cancelTimer ' )->with ($ timer );
338338
339339 $ this ->redis ->ping ();
340- $ deferred ->resolve ();
340+ $ deferred ->resolve (null );
341341 $ this ->redis ->close ();
342342 }
343343
@@ -414,7 +414,7 @@ public function testEmitsNoErrorEventWhenUnderlyingClientEmitsError()
414414 $ error = new \RuntimeException ();
415415
416416 $ 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 ));
418418
419419 $ deferred = new Deferred ();
420420 $ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn ($ deferred ->promise ());
@@ -429,7 +429,7 @@ public function testEmitsNoErrorEventWhenUnderlyingClientEmitsError()
429429 public function testEmitsNoCloseEventWhenUnderlyingClientEmitsClose ()
430430 {
431431 $ 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 ));
433433
434434 $ deferred = new Deferred ();
435435 $ this ->factory ->expects ($ this ->once ())->method ('createClient ' )->willReturn ($ deferred ->promise ());
@@ -463,7 +463,7 @@ public function testEmitsNoCloseEventButWillCancelIdleTimerWhenUnderlyingConnect
463463 $ this ->redis ->on ('close ' , $ this ->expectCallableNever ());
464464
465465 $ this ->redis ->ping ();
466- $ deferred ->resolve ();
466+ $ deferred ->resolve (null );
467467
468468 $ this ->assertTrue (is_callable ($ closeHandler ));
469469 $ closeHandler ();
@@ -473,7 +473,7 @@ public function testEmitsMessageEventWhenUnderlyingClientEmitsMessageForPubSubCh
473473 {
474474 $ messageHandler = null ;
475475 $ 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 ));
477477 $ client ->expects ($ this ->any ())->method ('on ' )->willReturnCallback (function ($ event , $ callback ) use (&$ messageHandler ) {
478478 if ($ event === 'message ' ) {
479479 $ messageHandler = $ callback ;
@@ -495,7 +495,7 @@ public function testEmitsUnsubscribeAndPunsubscribeEventsWhenUnderlyingClientClo
495495 {
496496 $ allHandler = null ;
497497 $ 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 ));
499499 $ client ->expects ($ this ->any ())->method ('on ' )->willReturnCallback (function ($ event , $ callback ) use (&$ allHandler ) {
500500 if (!isset ($ allHandler [$ event ])) {
501501 $ allHandler [$ event ] = $ callback ;
0 commit comments