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 5caa07a

Browse filesBrowse files
Merge branch '5.3' into 5.4
* 5.3: [Messenger] remove test-nothing test fix cs
2 parents 562abbf + f4d8af2 commit 5caa07a
Copy full SHA for 5caa07a

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+2
-26
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/ExtensionWithoutConfigTestBundle/DependencyInjection/ExtensionWithoutConfigTestExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/ExtensionWithoutConfigTestBundle/DependencyInjection/ExtensionWithoutConfigTestExtension.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function load(array $configs, ContainerBuilder $container)
1111
{
1212
}
1313

14-
public function getNamespace()
14+
public function getNamespace(): string
1515
{
1616
return '';
1717
}
@@ -21,7 +21,7 @@ public function getXsdValidationBasePath()
2121
return false;
2222
}
2323

24-
public function getAlias()
24+
public function getAlias(): string
2525
{
2626
return 'extension_without_config_test';
2727
}

‎src/Symfony/Component/Messenger/Tests/Stamp/ErrorDetailsStampTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Tests/Stamp/ErrorDetailsStampTest.php
-24Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
use Symfony\Component\Messenger\Stamp\ErrorDetailsStamp;
1919
use Symfony\Component\Messenger\Transport\Serialization\Normalizer\FlattenExceptionNormalizer;
2020
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
21-
use Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor;
22-
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
2321
use Symfony\Component\Serializer\Encoder\JsonEncoder;
2422
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
2523
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
@@ -72,26 +70,4 @@ public function testDeserialization()
7270
$this->assertInstanceOf(ErrorDetailsStamp::class, $deserializedStamp);
7371
$this->assertEquals($stamp, $deserializedStamp);
7472
}
75-
76-
public function testDeserializationWithStringExceptionCode()
77-
{
78-
$exception = new StringErrorCodeException('exception message', 'some code');
79-
$stamp = ErrorDetailsStamp::create($exception);
80-
$extractor = new ConstructorExtractor([
81-
new ReflectionExtractor(),
82-
]);
83-
$serializer = new Serializer(
84-
new SymfonySerializer([
85-
new ArrayDenormalizer(),
86-
new FlattenExceptionNormalizer(),
87-
new ObjectNormalizer(null, null, null, $extractor, null, null, []),
88-
], [new JsonEncoder()])
89-
);
90-
91-
$deserializedEnvelope = $serializer->decode($serializer->encode(new Envelope(new \stdClass(), [$stamp])));
92-
93-
$deserializedStamp = $deserializedEnvelope->last(ErrorDetailsStamp::class);
94-
$this->assertInstanceOf(ErrorDetailsStamp::class, $deserializedStamp);
95-
$this->assertEquals($stamp, $deserializedStamp);
96-
}
9773
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.