From 53181d76a2e54e5786db6a03bea363f48bf247b0 Mon Sep 17 00:00:00 2001 From: Divyajose <75604843+divya-intelli@users.noreply.github.com> Date: Tue, 9 Jan 2024 19:31:45 +0530 Subject: [PATCH] Fix for test failing for symfony 6.4 (#342) --- composer.json | 2 +- .../Denormalizer/ReportCriteriaDenormalizerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0b0c819a..f58114e7 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "symfony/options-resolver": "^6.3", "symfony/property-access": "^6.3", "symfony/property-info": "^6.3", - "symfony/serializer": "^6.3" + "symfony/serializer": "^6.3.11" }, "require-dev": { "dms/phpunit-arraysubset-asserts": "^0.4.0", diff --git a/tests/Api/Monetization/Denormalizer/ReportCriteriaDenormalizerTest.php b/tests/Api/Monetization/Denormalizer/ReportCriteriaDenormalizerTest.php index d0b1158b..f471a76e 100644 --- a/tests/Api/Monetization/Denormalizer/ReportCriteriaDenormalizerTest.php +++ b/tests/Api/Monetization/Denormalizer/ReportCriteriaDenormalizerTest.php @@ -31,7 +31,7 @@ class ReportCriteriaDenormalizerTest extends TestCase { - /** @var \Apigee\Edge\Api\Monetization\Denormalizer\ReportCriteriaDenormalizer */ + /** @var Apigee\Edge\Api\Monetization\Denormalizer\ReportCriteriaDenormalizer */ protected static $denormalizer; /** @@ -46,7 +46,7 @@ public static function setUpBeforeClass(): void public function testDenormalizeWithAbtractClassNoContext(): void { - $this->expectException('\Error'); + $this->expectException('\Symfony\Component\Serializer\Exception\NotNormalizableValueException'); static::$denormalizer->denormalize((object) [], AbstractCriteria::class, 'json'); }