From bec0db9223f91e4abb4f3706d56ff002e1ae8008 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sun, 28 Feb 2021 23:06:51 +0100 Subject: [PATCH] MDL-71036 phpunit: xml config - add new (9.5) validation xsd PHPUnit 9 comes with various changes in the XML configuration file, namely: - the old "filter" section has been renamed to "coverage". - "whitelist" has been renamed to "include" - "exclude" is not a child of "include" anymore, but of "coverage". - "include" cannot have configuration attributes anymore, only "coverage" can" Visually it means that the old section (invented example): ``` classes externallib.php . ``` Now looks like: ``` classes externallib.php . ``` So, switching to the new xsd so we can validate the remaining changes. --- lib/phpunit/phpunit.xsd | 571 ++++++++++++++++++++++------------------ 1 file changed, 321 insertions(+), 250 deletions(-) diff --git a/lib/phpunit/phpunit.xsd b/lib/phpunit/phpunit.xsd index 7612ee3b435..3785d21fef7 100644 --- a/lib/phpunit/phpunit.xsd +++ b/lib/phpunit/phpunit.xsd @@ -1,257 +1,328 @@ - - - This Schema file defines the rules by which the XML configuration file of PHPUnit 5.4 may be structured. - - - - - Root Element + + This Schema file defines the rules by which the XML configuration file of PHPUnit 9.5 may be structured. + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The main type specifying the document structure - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The main type specifying the document structure + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +