From 92b40dce2bea1e0fca2adf449354f81adefecf68 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 24 Sep 2023 09:36:01 +0200 Subject: [PATCH] PHPUnit config: display errors/warnings/notices etc The config as it was, was hiding 6 `Undefined array key`/`Trying to access array offset on null` notices. As any notice caused by a sniff will stop a PHPCS scan of a file dead, these should be discovered when running the tests and then fixed. Better yet: the tests should fail on them. This change in the configuration makes it so. Note: this does mean you now have a bug to fix. Also see: https://github.com/squizlabs/PHP_CodeSniffer/issues/3844 --- phpunit.xml.dist | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a98564147..b76ba3252 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -13,6 +13,13 @@ stopOnDefect="true" executionOrder="defects" cacheDirectory="temp/phpunit-cache" + displayDetailsOnTestsThatTriggerErrors="true" + displayDetailsOnTestsThatTriggerWarnings="true" + displayDetailsOnTestsThatTriggerNotices="true" + displayDetailsOnTestsThatTriggerDeprecations="true" + failOnWarning="true" + failOnNotice="true" + failOnDeprecation="true" >