@@ -31,7 +31,7 @@ public function testPingWillNotCloseConnectionWhenPendingConnectionFails()
3131    public  function  testPingWillNotCloseConnectionWhenUnderlyingConnectionCloses ()
3232    {
3333        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' ])->disableOriginalConstructor ()->getMock ();
34-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
34+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
3535
3636        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
3737        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -48,7 +48,7 @@ public function testPingWillNotCloseConnectionWhenUnderlyingConnectionCloses()
4848    public  function  testPingWillCancelTimerWithoutClosingConnectionWhenUnderlyingConnectionCloses ()
4949    {
5050        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' ])->disableOriginalConstructor ()->getMock ();
51-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
51+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
5252
5353        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
5454        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -69,7 +69,7 @@ public function testPingWillCancelTimerWithoutClosingConnectionWhenUnderlyingCon
6969    public  function  testPingWillNotForwardErrorFromUnderlyingConnection ()
7070    {
7171        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' ])->disableOriginalConstructor ()->getMock ();
72-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
72+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
7373
7474        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
7575        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -87,8 +87,8 @@ public function testPingWillNotForwardErrorFromUnderlyingConnection()
8787    public  function  testPingFollowedByIdleTimerWillQuitUnderlyingConnection ()
8888    {
8989        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' , 'quit ' , 'close ' ])->disableOriginalConstructor ()->getMock ();
90-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
91-         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \resolve ());
90+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
91+         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \resolve (null ));
9292        $ baseexpects ($ this never ())->method ('close ' );
9393
9494        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -115,8 +115,8 @@ public function testPingFollowedByIdleTimerWillQuitUnderlyingConnection()
115115    public  function  testPingFollowedByIdleTimerWillCloseUnderlyingConnectionWhenQuitFails ()
116116    {
117117        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' , 'quit ' , 'close ' ])->disableOriginalConstructor ()->getMock ();
118-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
119-         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \reject ());
118+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
119+         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \reject (new  \ RuntimeException () ));
120120        $ baseexpects ($ this once ())->method ('close ' );
121121
122122        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -143,7 +143,7 @@ public function testPingFollowedByIdleTimerWillCloseUnderlyingConnectionWhenQuit
143143    public  function  testPingAfterIdleTimerWillCloseUnderlyingConnectionBeforeCreatingSecondConnection ()
144144    {
145145        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' , 'quit ' , 'close ' ])->disableOriginalConstructor ()->getMock ();
146-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
146+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
147147        $ baseexpects ($ this once ())->method ('quit ' )->willReturn (new  Promise (function  () { }));
148148        $ baseexpects ($ this once ())->method ('close ' );
149149
@@ -289,7 +289,7 @@ public function testQueryBeforePingWillResolveWithoutStartingTimerWhenQueryFromU
289289    public  function  testQueryAfterPingWillCancelTimerAgainWhenPingFromUnderlyingConnectionResolved ()
290290    {
291291        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
292-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
292+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
293293        $ baseexpects ($ this once ())->method ('query ' )->with ('SELECT 1 ' )->willReturn (new  Promise (function  () { }));
294294
295295        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -480,7 +480,7 @@ public function testPingWillTryToCreateNewUnderlyingConnectionAfterPreviousPingF
480480    public  function  testPingWillResolveAndStartTimerWhenPingFromUnderlyingConnectionResolves ()
481481    {
482482        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
483-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
483+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
484484
485485        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
486486        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -570,7 +570,7 @@ public function testQuitAfterPingReturnsPendingPromiseWhenConnectionIsPending()
570570    public  function  testQuitAfterPingWillQuitUnderlyingConnectionWhenResolved ()
571571    {
572572        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
573-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
573+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
574574        $ baseexpects ($ this once ())->method ('quit ' )->willReturn (new  Promise (function  () { }));
575575
576576        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -585,8 +585,8 @@ public function testQuitAfterPingWillQuitUnderlyingConnectionWhenResolved()
585585    public  function  testQuitAfterPingResolvesAndEmitsCloseWhenUnderlyingConnectionQuits ()
586586    {
587587        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
588-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
589-         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \resolve ());
588+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
589+         $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \resolve (null ));
590590
591591        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
592592        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -606,7 +606,7 @@ public function testQuitAfterPingRejectsAndEmitsCloseWhenUnderlyingConnectionFai
606606    {
607607        $ errornew  \RuntimeException ();
608608        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
609-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
609+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
610610        $ baseexpects ($ this once ())->method ('quit ' )->willReturn (\React \Promise \reject ($ error
611611
612612        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -651,7 +651,7 @@ public function testCloseAfterPingCancelsPendingConnection()
651651    public  function  testCloseTwiceAfterPingWillCloseUnderlyingConnectionWhenResolved ()
652652    {
653653        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
654-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
654+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
655655        $ baseexpects ($ this once ())->method ('close ' );
656656
657657        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
@@ -685,7 +685,7 @@ public function testCloseAfterPingDoesNotEmitConnectionErrorFromAbortedConnectio
685685    public  function  testCloseAfterPingWillCancelTimerWhenPingFromUnderlyingConnectionResolves ()
686686    {
687687        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
688-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
688+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
689689
690690        $ factory$ this getMockBuilder ('React\MySQL\Factory ' )->disableOriginalConstructor ()->getMock ();
691691        $ factoryexpects ($ this once ())->method ('createConnection ' )->willReturn (\React \Promise \resolve ($ base
@@ -704,7 +704,7 @@ public function testCloseAfterPingWillCancelTimerWhenPingFromUnderlyingConnectio
704704    public  function  testCloseAfterPingHasResolvedWillCloseUnderlyingConnectionWithoutTryingToCancelConnection ()
705705    {
706706        $ base$ this getMockBuilder ('React\MySQL\Io\LazyConnection ' )->setMethods (['ping ' , 'close ' ])->disableOriginalConstructor ()->getMock ();
707-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
707+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
708708        $ baseexpects ($ this once ())->method ('close ' )->willReturnCallback (function  () use  ($ base
709709            $ baseemit ('close ' );
710710        });
@@ -723,7 +723,7 @@ public function testCloseAfterPingHasResolvedWillCloseUnderlyingConnectionWithou
723723    public  function  testCloseAfterQuitAfterPingWillCloseUnderlyingConnectionWhenQuitIsStillPending ()
724724    {
725725        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
726-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
726+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
727727        $ baseexpects ($ this once ())->method ('quit ' )->willReturn (new  Promise (function  () { }));
728728        $ baseexpects ($ this once ())->method ('close ' );
729729
@@ -740,7 +740,7 @@ public function testCloseAfterQuitAfterPingWillCloseUnderlyingConnectionWhenQuit
740740    public  function  testCloseAfterPingAfterIdleTimeoutWillCloseUnderlyingConnectionWhenQuitIsStillPending ()
741741    {
742742        $ base$ this getMockBuilder ('React\MySQL\ConnectionInterface ' )->getMock ();
743-         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve ());
743+         $ baseexpects ($ this once ())->method ('ping ' )->willReturn (\React \Promise \resolve (null ));
744744        $ baseexpects ($ this once ())->method ('quit ' )->willReturn (new  Promise (function  () { }));
745745        $ baseexpects ($ this once ())->method ('close ' );
746746
0 commit comments