Skip to content

Commit 3db8454

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Mitigate PHPUnit deprecations [TwigBundle] Add support for resetting globals between HTTP requests [Validator] Add Catalan and Spanish translation for `Week` constraint Don't use is_resource() on non-streams [Ldap] Fix extension deprecation
2 parents 7aa8efe + 1507e43 commit 3db8454

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/Transport/FailoverTransportTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)