Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a7e1a27

Browse filesBrowse files
Merge branch '5.4' into 6.0
* 5.4: - - Fix merge
2 parents ad308c1 + 4ae613e commit a7e1a27
Copy full SHA for a7e1a27

File tree

Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed

‎src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ public function testExtractEnum()
162162

163163
$validator = Validation::createValidatorBuilder()
164164
->addMethodMapping('loadValidatorMetadata')
165-
->enableAnnotationMapping()
165+
->enableAnnotationMapping(true)
166+
->addDefaultDoctrineAnnotationReader()
166167
->addLoader(new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(), '{^Symfony\\\\Bridge\\\\Doctrine\\\\Tests\\\\Fixtures\\\\DoctrineLoader}'))
167168
->getValidator()
168169
;

‎src/Symfony/Component/Notifier/Tests/Event/FailedMessageEventTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Tests/Event/FailedMessageEventTest.php
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.