Skip to content

Commit bcd9c8c

Browse files
Merge branch '6.0' into 6.1
* 6.0: - - Fix merge Fix merge [HttpKernel] Guard against bad profile data Fix merge [FrameworkBundle] Fix resetting container between tests Fix deprecations on PHP 8.2
2 parents 61e7563 + ca831b1 commit bcd9c8c

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)