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:
Eloy Lafuente (stronk7) 2021-02-28 23:45:33 +01:00
parent a148fd8602
commit 9fd6ac7c9d
12 changed files with 56 additions and 56 deletions

View File

@ -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 = [];
};

View File

@ -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',
];

View File

@ -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',
];

View File

@ -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',
];

View File

@ -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',
];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};

View File

@ -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 = [];
};