From 36ba57d3d322c11196bcf39991b48432ac977e79 Mon Sep 17 00:00:00 2001 From: Yaroslav Zhmayev Date: Mon, 15 Mar 2021 14:17:09 +0300 Subject: [PATCH] Update IsBizMailTest.php --- tests/IsBizMailTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }