Property | Type | Description | |
---|---|---|---|
$tokens | array | A collection of available tokens based on the number of processes specified in $options |
Method | Description | |
---|---|---|
__construct ( $opts = [] ) | ||
run ( ) | The money maker. Runs all ExecutableTest objects in separate processes. |
Method | Description | |
---|---|---|
acquireToken ( string $tokenIdentifier ) | Flag a token as acquired and not available for use | |
getNextAvailableToken ( ) : boolean | array | Gets the next token that is available to be acquired from a finished process | |
initTokens ( ) | Initialize the available test tokens based on how many processes ParaTest will be run in | |
releaseToken ( string $tokenIdentifier ) | Flag a token as available for use |
Method | Description | |
---|---|---|
addCoverage ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | ||
complete ( ) | Finalizes the run process. This method prints all results, rewinds the log interpreter, logs any results to JUnit, and cleans up temporary files | |
fillRunQueue ( ) | This method removes ExecutableTest objects from the pending collection and adds them to the running collection. It is also in charge of recycling and acquiring available test tokens for use | |
setExitCode ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) | If the provided test object has an exit code higher than the currently set exit code, that exit code will be set as the overall exit code | |
testIsStillRunning ( ParaTest\Runners\PHPUnit\ExecutableTest $test ) : boolean | Returns whether or not a test has finished being executed. If it has, this method also halts a test process - optionally throwing an exception if a fatal error has occurred - prints feedback, and updates the overall exit code |
protected acquireToken ( string $tokenIdentifier ) | ||
$tokenIdentifier | string |
protected getNextAvailableToken ( ) : boolean | array | ||
return | boolean | array |
protected initTokens ( ) |
protected releaseToken ( string $tokenIdentifier ) | ||
$tokenIdentifier | string |
public run ( ) |
protected array $tokens | ||
return | array |