@@ -80,11 +80,11 @@ public function testSendAllDead()
80
80
81
81
$ t1 = $ this ->createMock (TransportInterface::class);
82
82
$ 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));
84
84
85
85
$ t2 = $ this ->createMock (TransportInterface::class);
86
86
$ 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));
88
88
89
89
$ t = new FailoverTransport ([$ t1 , $ t2 ]);
90
90
@@ -100,7 +100,7 @@ public function testSendOneDead()
100
100
101
101
$ t1 = $ this ->createMock (TransportInterface::class);
102
102
$ 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));
104
104
105
105
$ t2 = $ this ->createMock (TransportInterface::class);
106
106
$ t2 ->method ('supports ' )->with ($ message )->willReturn (true );
@@ -117,7 +117,7 @@ public function testSendAllDeadWithinRetryPeriod()
117
117
118
118
$ t1 = $ this ->createMock (TransportInterface::class);
119
119
$ 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));
121
121
$ t1 ->expects ($ this ->once ())->method ('send ' );
122
122
$ t2 = $ this ->createMock (TransportInterface::class);
123
123
$ t2 ->method ('supports ' )->with ($ message )->willReturn (true );
0 commit comments