Skip to content

Commit

Permalink
Remove expectDeprecationMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Mar 8, 2023
1 parent e330b8c commit 55d30b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/Unit/BackedEnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/UnitEnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 55d30b7

Please sign in to comment.