Skip to content

Commit

Permalink
Update IsBizMailTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
salaros authored Mar 15, 2021
1 parent b5f11a7 commit 36ba57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/IsBizMailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function emailAddressIsInvalid($invalidEmail)
public function testisFreeMailAddressException200()
{
if (version_compare(PHP_VERSION, '7.3.0') >= 0) {
eval('$this->expectException(\InvalidArgumentException::class);'); // needed to avoid parse error on PHP 5.4
$this->expectException('InvalidArgumentException');
$this->expectExceptionCode(200);
}

Expand All @@ -176,7 +176,7 @@ public function testisFreeMailAddressException200()
public function testisFreeMailAddressException100()
{
if (version_compare(PHP_VERSION, '7.3.0') >= 0) {
eval('$this->expectException(\InvalidArgumentException::class);'); // needed to avoid parse error on PHP 5.4
$this->expectException('InvalidArgumentException');
$this->expectExceptionCode(100);
}

Expand Down

0 comments on commit 36ba57d

Please sign in to comment.