@@ -80,11 +80,11 @@ public function testSendAllDead()
8080
8181 $ t1 = $ this ->createMock (TransportInterface::class);
8282 $ t1 ->method ('supports ' )->with ($ message )->willReturn (true );
83- $ t1 ->expects ($ this ->once ())->method ('send ' )->with ($ message )->will ($ this ->throwException ( $ this -> createMock (TransportExceptionInterface::class) ));
83+ $ t1 ->expects ($ this ->once ())->method ('send ' )->with ($ message )->willThrowException ($ this ->createMock (TransportExceptionInterface::class));
8484
8585 $ t2 = $ this ->createMock (TransportInterface::class);
8686 $ t2 ->method ('supports ' )->with ($ message )->willReturn (true );
87- $ t2 ->expects ($ this ->once ())->method ('send ' )->with ($ message )->will ($ this ->throwException ( $ this -> createMock (TransportExceptionInterface::class) ));
87+ $ t2 ->expects ($ this ->once ())->method ('send ' )->with ($ message )->willThrowException ($ this ->createMock (TransportExceptionInterface::class));
8888
8989 $ t = new FailoverTransport ([$ t1 , $ t2 ]);
9090
@@ -100,7 +100,7 @@ public function testSendOneDead()
100100
101101 $ t1 = $ this ->createMock (TransportInterface::class);
102102 $ t1 ->method ('supports ' )->with ($ message )->willReturn (true );
103- $ t1 ->expects ($ this ->once ())->method ('send ' )->will ($ this ->throwException ( $ this -> createMock (TransportExceptionInterface::class) ));
103+ $ t1 ->expects ($ this ->once ())->method ('send ' )->willThrowException ($ this ->createMock (TransportExceptionInterface::class));
104104
105105 $ t2 = $ this ->createMock (TransportInterface::class);
106106 $ t2 ->method ('supports ' )->with ($ message )->willReturn (true );
@@ -117,7 +117,7 @@ public function testSendAllDeadWithinRetryPeriod()
117117
118118 $ t1 = $ this ->createMock (TransportInterface::class);
119119 $ t1 ->method ('supports ' )->with ($ message )->willReturn (true );
120- $ t1 ->method ('send ' )->will ($ this ->throwException ( $ this -> createMock (TransportExceptionInterface::class) ));
120+ $ t1 ->method ('send ' )->willThrowException ($ this ->createMock (TransportExceptionInterface::class));
121121 $ t1 ->expects ($ this ->once ())->method ('send ' );
122122 $ t2 = $ this ->createMock (TransportInterface::class);
123123 $ t2 ->method ('supports ' )->with ($ message )->willReturn (true );
0 commit comments