MediaWiki master
MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager Class Reference

Public Member Functions

 __construct (string $rootDir, string $testsListFile, string $phpunitConfigFile, string $testGroup, ?string $resultsCacheFile=null)
 
 createPhpUnitXml (int $groups)
 
 isPhpUnitXmlPrepared ()
 

Static Public Member Functions

static fetchResultsCache (Event $event)
 
static getPhpUnitXmlDist (string $rootDir)
 
static listTestsNotice (Event $event)
 
static newSplitGroupExecutor (IOInterface $io, ComposerSystemInterface $system)
 
static notifyResultsServer (Event $event)
 Called after a parallel run, to let the results server know that new results will be available soon to be fetched.
 
static splitTestsCustom (Event $event)
 
static splitTestsList (string $testGroup, string $testListFile, ?string $testSuite, string $phpunitConfigOutputFile, ComposerSystemInterface $system, SplitGroupExecutor $executor, ?IOInterface $io)
 
static splitTestsListDefault (Event $event)
 
static splitTestsListExtensions (Event $event)
 

Public Attributes

const RESULTS_CACHE_FILE = 'phpunit-results-cache.json'
 

Detailed Description

Note
GPL-2.0-or-later

Definition at line 19 of file PhpUnitXmlManager.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::__construct ( string $rootDir,
string $testsListFile,
string $phpunitConfigFile,
string $testGroup,
?string $resultsCacheFile = null )

Definition at line 45 of file PhpUnitXmlManager.php.

Member Function Documentation

◆ createPhpUnitXml()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::createPhpUnitXml ( int $groups)
Returns
void
Exceptions
MissingNamespaceMatchForTestException
TestListMissingException
UnlocatedTestException
SuiteGenerationException
PhpUnitErrorTestCaseFoundException
PhpUnitResultsCachingException

Definition at line 160 of file PhpUnitXmlManager.php.

◆ fetchResultsCache()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::fetchResultsCache ( Event $event)
static

Definition at line 224 of file PhpUnitXmlManager.php.

◆ getPhpUnitXmlDist()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::getPhpUnitXmlDist ( string $rootDir)
static

Definition at line 63 of file PhpUnitXmlManager.php.

◆ isPhpUnitXmlPrepared()

MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::isPhpUnitXmlPrepared ( )

Definition at line 145 of file PhpUnitXmlManager.php.

◆ listTestsNotice()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::listTestsNotice ( Event $event)
static

Definition at line 320 of file PhpUnitXmlManager.php.

◆ newSplitGroupExecutor()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::newSplitGroupExecutor ( IOInterface $io,
ComposerSystemInterface $system )
static

Definition at line 326 of file PhpUnitXmlManager.php.

◆ notifyResultsServer()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::notifyResultsServer ( Event $event)
static

Called after a parallel run, to let the results server know that new results will be available soon to be fetched.

We assume LOG_PATH is set (or if not, that a warning about that has already been emitted).

Definition at line 290 of file PhpUnitXmlManager.php.

◆ splitTestsCustom()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::splitTestsCustom ( Event $event)
static
Exceptions
TestListMissingException
UnlocatedTestException
MissingNamespaceMatchForTestException
SuiteGenerationException

Definition at line 471 of file PhpUnitXmlManager.php.

◆ splitTestsList()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::splitTestsList ( string $testGroup,
string $testListFile,
?string $testSuite,
string $phpunitConfigOutputFile,
ComposerSystemInterface $system,
SplitGroupExecutor $executor,
?IOInterface $io )
static
Exceptions
TestListMissingException
UnlocatedTestException
MissingNamespaceMatchForTestException
SuiteGenerationException
PhpUnitResultsCachingException

Definition at line 347 of file PhpUnitXmlManager.php.

References MediaWiki\Composer\ComposerSystemInterface\exit(), MediaWiki\Composer\ComposerSystemInterface\getcwd(), and MediaWiki\Composer\PhpUnitSplitter\SplitGroupExecutor\runLinearFallback().

◆ splitTestsListDefault()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::splitTestsListDefault ( Event $event)
static
Exceptions
TestListMissingException
UnlocatedTestException
MissingNamespaceMatchForTestException
SuiteGenerationException

Definition at line 443 of file PhpUnitXmlManager.php.

◆ splitTestsListExtensions()

static MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::splitTestsListExtensions ( Event $event)
static
Exceptions
TestListMissingException
UnlocatedTestException
MissingNamespaceMatchForTestException
SuiteGenerationException

Definition at line 415 of file PhpUnitXmlManager.php.

Member Data Documentation

◆ RESULTS_CACHE_FILE

const MediaWiki\Composer\PhpUnitSplitter\PhpUnitXmlManager::RESULTS_CACHE_FILE = 'phpunit-results-cache.json'

Definition at line 21 of file PhpUnitXmlManager.php.


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