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)
 

Public Attributes

const PHP_UNIT_XML_FILE = "phpunit.xml"
 

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 19 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 80 of file PhpUnitXml.php.

◆ addSplitGroups()

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

Definition at line 45 of file PhpUnitXml.php.

◆ containsSplitGroups()

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

Definition at line 31 of file PhpUnitXml.php.

◆ isPhpUnitXmlPrepared()

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

Definition at line 23 of file PhpUnitXml.php.

◆ saveToDisk()

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

Definition at line 92 of file PhpUnitXml.php.

Member Data Documentation

◆ PHP_UNIT_XML_FILE

const MediaWiki\Composer\PhpUnitSplitter\PhpUnitXml::PHP_UNIT_XML_FILE = "phpunit.xml"

Definition at line 15 of file PhpUnitXml.php.


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