Skip to content

Commit ca831b1

Browse files
Merge branch '5.4' into 6.0
* 5.4: - - Fix merge
2 parents fa50489 + cf926e6 commit ca831b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/Event/FailedMessageEventTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Contracts\HttpClient\HttpClientInterface;
1717

18-
final class FailedMessageEventTest extends TestCase
18+
class FailedMessageEventTest extends TestCase
1919
{
2020
/**
2121
* @dataProvider messagesProvider
@@ -47,6 +47,8 @@ public function testFailedMessageEventIsDisptachIfError()
4747
$clientMock = $this->createMock(HttpClientInterface::class);
4848

4949
$transport = new class($clientMock, $eventDispatcherMock) extends AbstractTransport {
50+
public $exception;
51+
5052
public function __construct($client, EventDispatcherInterface $dispatcher = null)
5153
{
5254
$this->exception = new NullTransportException();
@@ -65,6 +67,7 @@ public function supports(MessageInterface $message): bool
6567

6668
public function __toString(): string
6769
{
70+
return '';
6871
}
6972
};
7073

0 commit comments

Comments
 (0)