MediaWiki master
MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml Class Reference

Public Member Functions

 __construct (string $phpUnitXmlFile)
 
 addSpecialCaseTests (int $groupCount)
 There are some tests suites / classes where the test listing does not work because test cases are generated dynamically.
 
 addSplitGroups (array $splitGroups)
 
 containsSplitGroups ()
 
 saveToDisk (string $targetXml)
 

Static Public Member Functions

static isPhpUnitXmlPrepared (string $targetFile)
 

Detailed Description

Note
GPL-2.0-or-later

Definition at line 13 of file PhpUnitXml.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::__construct ( string $phpUnitXmlFile)

Definition at line 17 of file PhpUnitXml.php.

Member Function Documentation

◆ addSpecialCaseTests()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::addSpecialCaseTests ( int $groupCount)

There are some tests suites / classes where the test listing does not work because test cases are generated dynamically.

For this special cases, we need to add the classes manually back into the suites list to ensure that they get included in a test run.

See also
T345481
T358394
Exceptions
SuiteGenerationException

Definition at line 78 of file PhpUnitXml.php.

◆ addSplitGroups()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::addSplitGroups ( array $splitGroups)

Definition at line 43 of file PhpUnitXml.php.

◆ containsSplitGroups()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::containsSplitGroups ( )

Definition at line 29 of file PhpUnitXml.php.

◆ isPhpUnitXmlPrepared()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::isPhpUnitXmlPrepared ( string $targetFile)
static

Definition at line 21 of file PhpUnitXml.php.

◆ saveToDisk()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::saveToDisk ( string $targetXml)

Definition at line 90 of file PhpUnitXml.php.


The documentation for this class was generated from the following file: