diff --git a/tests/IsBizMailTest.php b/tests/IsBizMailTest.php index a447faf..bb35d5d 100644 --- a/tests/IsBizMailTest.php +++ b/tests/IsBizMailTest.php @@ -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); } @@ -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); }