Skip to content

Commit 1a7faae

Browse files
committed
fix intersection types in tests
1 parent 28249b0 commit 1a7faae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Command/SetupTransportsCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SetupTransportsCommandTest extends TestCase
2424
public function testReceiverNames()
2525
{
2626
// mock a service locator
27-
/** @var MockObject|ServiceLocator $serviceLocator */
27+
/** @var MockObject&ServiceLocator $serviceLocator */
2828
$serviceLocator = $this->createMock(ServiceLocator::class);
2929
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
3030
$serviceLocator->expects($this->exactly(2))
@@ -49,7 +49,7 @@ public function testReceiverNames()
4949
public function testReceiverNameArgument()
5050
{
5151
// mock a service locator
52-
/** @var MockObject|ServiceLocator $serviceLocator */
52+
/** @var MockObject&ServiceLocator $serviceLocator */
5353
$serviceLocator = $this->createMock(ServiceLocator::class);
5454
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
5555
$serviceLocator->expects($this->exactly(1))
@@ -74,7 +74,7 @@ public function testReceiverNameArgumentNotFound()
7474
$this->expectException(\RuntimeException::class);
7575
$this->expectExceptionMessage('The "not_found" transport does not exist.');
7676
// mock a service locator
77-
/** @var MockObject|ServiceLocator $serviceLocator */
77+
/** @var MockObject&ServiceLocator $serviceLocator */
7878
$serviceLocator = $this->createMock(ServiceLocator::class);
7979
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
8080
$serviceLocator->expects($this->exactly(0))

0 commit comments

Comments
 (0)