mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
MDL-71036 phpunit: xml config - switch coverage info to new includes
This applies the "whitelist" => "include" changes to all the core phpunit_coverage_info occurrences, so core won't emit any deprecation warning (see previous commit). At the same time, modified a bunch of comments in coverage files to be more readable/understandable.
This commit is contained in:
parent
a148fd8602
commit
9fd6ac7c9d
@ -32,18 +32,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -33,8 +33,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
// Array The list of folders relative to the plugin root to whitelist in coverage generation.
|
||||
protected $whitelistfolders = [
|
||||
// Array The list of folders relative to the plugin root to include in coverage generation.
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
'tests/generator',
|
||||
];
|
||||
|
@ -33,8 +33,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
// Array The list of folders relative to the plugin root to whitelist in coverage generation.
|
||||
protected $whitelistfolders = [
|
||||
// Array The list of folders relative to the plugin root to include in coverage generation.
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
'tests/generator',
|
||||
];
|
||||
|
@ -33,8 +33,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
// Array The list of folders relative to the plugin root to whitelist in coverage generation.
|
||||
protected $whitelistfolders = [
|
||||
// Array The list of folders relative to the plugin root to include in coverage generation.
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
'tests/generator',
|
||||
];
|
||||
|
@ -33,8 +33,8 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
// Array The list of folders relative to the plugin root to whitelist in coverage generation.
|
||||
protected $whitelistfolders = [
|
||||
// Array The list of folders relative to the plugin root to include in coverage generation.
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
};
|
||||
|
@ -32,17 +32,17 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -34,17 +34,17 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -32,22 +32,22 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
|
||||
// This is a legacy hangup which relates to parts of the file storage API being placed in the wrong location.
|
||||
'filestorage',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [
|
||||
'filestorage/tests',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -32,17 +32,17 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -32,18 +32,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
'externallib.php',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -26,18 +26,18 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
'tests/generator',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
@ -32,18 +32,18 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
return new class extends phpunit_coverage_info {
|
||||
/** @var array The list of folders relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfolders = [
|
||||
/** @var array The list of folders relative to the plugin root o include in coverage generation. */
|
||||
protected $includelistfolders = [
|
||||
'classes',
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to whitelist in coverage generation. */
|
||||
protected $whitelistfiles = [];
|
||||
/** @var array The list of files relative to the plugin root to include in coverage generation. */
|
||||
protected $includelistfiles = [];
|
||||
|
||||
/** @var array The list of folders relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of folders relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfolders = [
|
||||
];
|
||||
|
||||
/** @var array The list of files relative to the plugin root to excludelist in coverage generation. */
|
||||
/** @var array The list of files relative to the plugin root to exclude from coverage generation. */
|
||||
protected $excludelistfiles = [];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user