Skip to content

Commit

Permalink
Become strict about notices and warnings
Browse files Browse the repository at this point in the history
Since PHPUnit 10, it is possible to display details when notices and
warnings happen, and to fail the test suite on notice.
failOnWarning is older than that.
  • Loading branch information
greg0ire authored and derrabus committed Apr 20, 2023
1 parent ae88844 commit 6857118
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
failOnNotice="true"
failOnWarning="true"
failOnRisky="true"
bootstrap="./tests/Doctrine/Tests/TestInit.php"
cacheDirectory=".phpunit.cache"
Expand Down

0 comments on commit 6857118

Please sign in to comment.