Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56ce31d

Browse files
Merge branch '5.4' into 6.4
* 5.4: [HttpClient][Mailer] Revert "Let curl handle transfer encoding", use HTTP/1.1 for Mailgun Reviewed Catalan missing translations Fix typo: synchronous -> synchronously [Serializer] Check if exception message in test is correct Ibexa is sponsoring Symfony 5.4, thanks to them! \o/ [String] Add `alias` case to `EnglishInflector`
2 parents 240a7bb + c97dba5 commit 56ce31d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Tests/Fixtures/NotNormalizableDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public function __construct()
2626

2727
public function denormalize(DenormalizerInterface $denormalizer, $data, ?string $format = null, array $context = []): void
2828
{
29-
throw new NotNormalizableValueException();
29+
throw new NotNormalizableValueException('Custom exception message');
3030
}
3131
}

Tests/Normalizer/AbstractObjectNormalizerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ public function testDenormalizeUntypedFormat()
888888
public function testDenormalizeUntypedFormatNotNormalizable()
889889
{
890890
$this->expectException(NotNormalizableValueException::class);
891+
$this->expectExceptionMessage('Custom exception message');
891892
$serializer = new Serializer([new CustomNormalizer(), new ObjectNormalizer(null, null, null, new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()]))]);
892893
$serializer->denormalize(['value' => 'test'], DummyWithNotNormalizable::class, 'xml');
893894
}

0 commit comments

Comments
 (0)