diff --git a/admin/tool/dataprivacy/tests/coverage.php b/admin/tool/dataprivacy/tests/coverage.php index 9af4b87f64e..8cf8d5d1d09 100644 --- a/admin/tool/dataprivacy/tests/coverage.php +++ b/admin/tool/dataprivacy/tests/coverage.php @@ -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 = []; }; diff --git a/grade/grading/form/guide/tests/coverage.php b/grade/grading/form/guide/tests/coverage.php index 84ed112e668..4d4db5997e4 100644 --- a/grade/grading/form/guide/tests/coverage.php +++ b/grade/grading/form/guide/tests/coverage.php @@ -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', ]; diff --git a/grade/grading/form/rubric/tests/coverage.php b/grade/grading/form/rubric/tests/coverage.php index 31da9126f52..5f7ea0bd9e1 100644 --- a/grade/grading/form/rubric/tests/coverage.php +++ b/grade/grading/form/rubric/tests/coverage.php @@ -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', ]; diff --git a/grade/grading/tests/coverage.php b/grade/grading/tests/coverage.php index 9b2b565097d..ca324a72acf 100644 --- a/grade/grading/tests/coverage.php +++ b/grade/grading/tests/coverage.php @@ -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', ]; diff --git a/grade/tests/coverage.php b/grade/tests/coverage.php index 7480fcc88bb..e94090ee9f5 100644 --- a/grade/tests/coverage.php +++ b/grade/tests/coverage.php @@ -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', ]; }; diff --git a/h5p/tests/coverage.php b/h5p/tests/coverage.php index d5502cb8dbc..2f44b956404 100644 --- a/h5p/tests/coverage.php +++ b/h5p/tests/coverage.php @@ -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 = []; }; diff --git a/lib/table/tests/coverage.php b/lib/table/tests/coverage.php index 518bdc094c7..eee7b6ceb13 100644 --- a/lib/table/tests/coverage.php +++ b/lib/table/tests/coverage.php @@ -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 = []; }; diff --git a/lib/tests/coverage.php b/lib/tests/coverage.php index 8251d45cd3b..4cf41e8028c 100644 --- a/lib/tests/coverage.php +++ b/lib/tests/coverage.php @@ -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 = []; }; diff --git a/lib/xapi/tests/coverage.php b/lib/xapi/tests/coverage.php index d0a81abdc9b..1a4f28beb5d 100644 --- a/lib/xapi/tests/coverage.php +++ b/lib/xapi/tests/coverage.php @@ -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 = []; }; diff --git a/mod/forum/tests/coverage.php b/mod/forum/tests/coverage.php index 527c7e7c588..a9edb2473ed 100644 --- a/mod/forum/tests/coverage.php +++ b/mod/forum/tests/coverage.php @@ -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 = []; }; diff --git a/mod/h5pactivity/tests/coverage.php b/mod/h5pactivity/tests/coverage.php index 935436b1233..9902daba6dc 100644 --- a/mod/h5pactivity/tests/coverage.php +++ b/mod/h5pactivity/tests/coverage.php @@ -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 = []; }; diff --git a/privacy/tests/coverage.php b/privacy/tests/coverage.php index 9af4b87f64e..da0e4001f36 100644 --- a/privacy/tests/coverage.php +++ b/privacy/tests/coverage.php @@ -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 = []; };