forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-xxxxx phpunit: Update configuration file to version 10
This comes with a good number of changes: 1. The convertXXXXToExceptions are gone, with notices, warnings and others not being shown by default. To mimic the previous behaviour we are enabling all these: - failOnNotice - failOnWarning - displayDetailsOnTestsThatTriggerDeprecations - displayDetailsOnTestsThatTriggerErrors - displayDetailsOnTestsThatTriggerNotices - displayDetailsOnTestsThatTriggerWarnings With them the behaviour is 99% the same than the previous one. Still there are some defaults that should be considered, like failing on Incomplete, Risky, Deprecation... but they were not enabled previously, so I've left them apart (not failing and not showing details). They can be enabled with a simple -v. 2. backupStaticAttributes renamed to backupStaticProperties. 3. stopOnXXX removed, because all them default to false, so no needed. 4. Added cacheDirectory (.phpunit.cache) for anybody wanting to use it via command line --cache-result option (also @ .gitignore). Also ensure that the distributed phpunit.xml files are generated pointing to it. We remove the previous .phpunit.result.cache file, because it's deprecated by sebastianbergmann/phpunit#4599 5. Enabled beStrictAboutChangesToGlobalState , not sure about it but can help to detect cases where something is changed without noticing. 6. The <coverage> section is now only to configure how coverage should be generated and evaluated. The lists of directories and files have been moved to the new <source> section.
- Loading branch information
Showing
4 changed files
with
115 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.