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:
@@ -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
|
||||
@@ -6,6 +6,8 @@
|
||||
processIsolation="false"
|
||||
backupGlobals="false"
|
||||
cacheResult="false"
|
||||
failOnDeprecation="true"
|
||||
failOnWarning="true"
|
||||
stopOnError="false"
|
||||
stopOnFailure="false"
|
||||
stopOnIncomplete="false"
|
||||
|
||||
Reference in New Issue
Block a user