From 55d30b7c10cc2d28b1e149eda7585b3b28f4dc34 Mon Sep 17 00:00:00 2001 From: PrinsFrank Date: Wed, 8 Mar 2023 21:56:52 +0100 Subject: [PATCH] Remove expectDeprecationMessages --- tests/Unit/BackedEnumTest.php | 1 - tests/Unit/UnitEnumTest.php | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/Unit/BackedEnumTest.php b/tests/Unit/BackedEnumTest.php index 82143a2..3765a7a 100644 --- a/tests/Unit/BackedEnumTest.php +++ b/tests/Unit/BackedEnumTest.php @@ -141,7 +141,6 @@ public function testToArrayThrowsExceptionOnNonEnumValue(): void public function testFromKeyThrowsExceptionNonExistingKey(): void { $this->expectException(KeyNotFoundException::class); - $this->expectDeprecationMessage('Key "BAR" not found in "' . TestEnumBackedByString::class . '"'); BackedEnum::fromKey(TestEnumBackedByString::class, 'BAR'); } } diff --git a/tests/Unit/UnitEnumTest.php b/tests/Unit/UnitEnumTest.php index 29b457e..cfa9c1d 100644 --- a/tests/Unit/UnitEnumTest.php +++ b/tests/Unit/UnitEnumTest.php @@ -75,7 +75,6 @@ public function testNamesThrowsExceptionOnNonEnumValue(): void public function testFromKeyThrowsExceptionNonExistingKey(): void { $this->expectException(KeyNotFoundException::class); - $this->expectDeprecationMessage('Key "BAR" not found in "' . TestEnum::class . '"'); UnitEnum::fromKey(TestEnum::class, 'BAR'); } }