MDL-86311 phpunit: update default configuration to fail on warnings.

This restores pre-PHPUnit 10 behaviour, and ensures that warnings
emitted by PHP during test execution will cause the test to fail.
This commit is contained in:
Paul Holden
2025-08-19 09:13:20 +01:00
parent 2b96047622
commit d011564222
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,13 @@
issueNumber: MDL-86311
notes:
core:
- message: >-
The default PHPUnit configuration now enables the following properties,
ensuring PHP warnings will cause test failures (restoring pre-PHPUnit
version 10 behaviour):
* `failOnDeprecation`
* `failOnWarning`
type: changed
+2
View File
@@ -6,6 +6,8 @@
processIsolation="false"
backupGlobals="false"
cacheResult="false"
failOnDeprecation="true"
failOnWarning="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"