Skip to content

Commit

Permalink
Mitigate PHPUnit deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Sep 6, 2024
1 parent 7985801 commit b82e3ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tests/Command/SetupTransportsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b82e3ed

Please sign in to comment.