Skip to content

Commit 16fb738

Browse files
Fix phpunit deprecation
1 parent 2fc1d70 commit 16fb738

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

phpunit.xml.dist

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
45
colors="true"
56
convertErrorsToExceptions="true"
67
convertNoticesToExceptions="true"
78
convertWarningsToExceptions="true"
89
processIsolation="false"
910
stopOnFailure="false"
10-
syntaxCheck="false"
1111
bootstrap="vendor/autoload.php"
12-
>
12+
>
1313
<testsuites>
1414
<testsuite name="EmailChecker Test Suite">
1515
<directory>./tests/</directory>
1616
</testsuite>
1717
</testsuites>
18-
<filter>
19-
<whitelist>
20-
<directory>./src/EmailChecker/</directory>
21-
</whitelist>
22-
</filter>
18+
<coverage>
19+
<include>
20+
<directory>./src/EmailChecker</directory>
21+
</include>
22+
</coverage>
2323
</phpunit>

tests/EmailChecker/Tests/UtilitiesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function testParseInvalidEmail(string $email): void
3535
Utilities::parseEmailAddress($email);
3636
self::fail(sprintf('"%s" should not be a valid email', $email));
3737
} catch (InvalidEmailException $e) {
38+
$this->expectNotToPerformAssertions();
3839
return;
3940
}
4041
}

0 commit comments

Comments
 (0)