Skip to content

Commit

Permalink
Fix assertion on exeption message that differs between PHP8.1 and PHP8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Dec 11, 2022
1 parent 2018a3c commit 0c39895
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/Unit/Country/ISO3166_1_NumericTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public function testFromInt(): void
public function testFromIntThrowsExceptionOnNonExistingValue(): void
{
$this->expectException(ValueError::class);
$this->expectExceptionMessage('"001" is not a valid backing value for enum "' . ISO3166_1_Numeric::class . '"');
static::assertNull(ISO3166_1_Numeric::fromInt(1));
}

Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Currency/ISO4217_NumericTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public function testFromInt(): void
public function testFromIntThrowsExceptionOnNonExistingValue(): void
{
$this->expectException(ValueError::class);
$this->expectExceptionMessage('"001" is not a valid backing value for enum "' . ISO4217_Numeric::class . '"');
static::assertNull(ISO4217_Numeric::fromInt(1));
}

Expand Down

0 comments on commit 0c39895

Please sign in to comment.