diff --git a/tests/Unit/BackedEnumTest.php b/tests/Unit/BackedEnumTest.php index 82143a2c..3765a7a1 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 29b457ee..cfa9c1d2 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'); } }