Skip to content

Commit f8eabfb

Browse files
committed
For arguments sake, try all three attributes
PHPUnit 10 fails with a warning about an incompatible XML config, exit code 1. ``` 1) Test results may not be as expected because the XML configuration file did not pass validation: Line 24: - Element 'source', attribute 'ignoreSelfDeprecations': The attribute 'ignoreSelfDeprecations' is not allowed. - Element 'source', attribute 'ignoreDirectDeprecations': The attribute 'ignoreDirectDeprecations' is not allowed. - Element 'source', attribute 'ignoreIndirectDeprecations': The attribute 'ignoreIndirectDeprecations' is not allowed. ``` PHPUnit 11 throws PHPUnit deprecation notice about `CoversClass`, exit code 1.
1 parent cc0c671 commit f8eabfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</testsuite>
2222
</testsuites>
2323

24-
<source ignoreIndirectDeprecations="true">
24+
<source ignoreSelfDeprecations="true" ignoreDirectDeprecations="true" ignoreIndirectDeprecations="true">
2525
<include>
2626
<directory suffix=".php">./src/</directory>
2727
</include>

0 commit comments

Comments
 (0)