From 16fb738a73afe45810314faa80a8f2ef4b81481d Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 10 Dec 2025 09:55:57 +0100 Subject: [PATCH] Fix phpunit deprecation --- phpunit.xml.dist | 18 +++++++++--------- tests/EmailChecker/Tests/UtilitiesTest.php | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 34b450e..5ae99c8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,23 +1,23 @@ - +> ./tests/ - - - ./src/EmailChecker/ - - + + + ./src/EmailChecker + + diff --git a/tests/EmailChecker/Tests/UtilitiesTest.php b/tests/EmailChecker/Tests/UtilitiesTest.php index cf98b8b..be6b017 100644 --- a/tests/EmailChecker/Tests/UtilitiesTest.php +++ b/tests/EmailChecker/Tests/UtilitiesTest.php @@ -35,6 +35,7 @@ public function testParseInvalidEmail(string $email): void Utilities::parseEmailAddress($email); self::fail(sprintf('"%s" should not be a valid email', $email)); } catch (InvalidEmailException $e) { + $this->expectNotToPerformAssertions(); return; } }