From b82e3ed083201f2a9ab68268f2cdcdcdb792f1b7 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 6 Sep 2024 10:01:18 +0200 Subject: [PATCH] Mitigate PHPUnit deprecations --- Tests/Command/SetupTransportsCommandTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tests/Command/SetupTransportsCommandTest.php b/Tests/Command/SetupTransportsCommandTest.php index c31e71a..ab5f29b 100644 --- a/Tests/Command/SetupTransportsCommandTest.php +++ b/Tests/Command/SetupTransportsCommandTest.php @@ -101,9 +101,7 @@ public function testThrowsExceptionOnTransportSetup() $serviceLocator = $this->createMock(ServiceLocator::class); $serviceLocator->expects($this->exactly(1)) ->method('get') - ->will($this->onConsecutiveCalls( - $amqpTransport - )); + ->willReturn($amqpTransport); $serviceLocator ->method('has') ->willReturn(true);