PHP Class ParaTest\Runners\PHPUnit\BaseRunner

Show file Open project: brianium/paratest Class Usage Examples

Protected Properties

Property Type Description
$coverage ParaTest\Coverage\CoverageMerger CoverageMerger to hold track of the accumulated coverage
$exitcode integer A tallied exit code that returns the highest exit code returned out of the entire collection of tests
$interpreter ParaTest\Logging\LogInterpreter
$options ParaTest\Runners\PHPUnit\Options
$pending array A collection of pending ExecutableTest objects that have yet to run
$printer ResultPrinter
$running array A collection of ExecutableTest objects that have processes currently running

Public Methods

Method Description
__construct ( $opts = [] )
getExitCode ( ) : integer Returns the highest exit code encountered throughout the course of test execution
run ( )

Protected Methods

Method Description
getCoverage ( ) : CoverageMerger
hasCoverage ( ) : boolean
initCoverage ( )
load ( ) Builds the collection of pending ExecutableTest objects to run. If functional mode is enabled $this->pending will contain a collection of TestMethod objects instead of Suite objects
log ( ) Write output to JUnit format if requested
logCoverage ( ) Write coverage to file if requested
verifyConfiguration ( ) Ensures a valid configuration was supplied. If not causes ParaTest to print the error message and exit immediately with an exit code of 1

Method Details

__construct() public method

public __construct ( $opts = [] )

getCoverage() protected method

protected getCoverage ( ) : CoverageMerger
return ParaTest\Coverage\CoverageMerger

getExitCode() public method

Returns the highest exit code encountered throughout the course of test execution
public getExitCode ( ) : integer
return integer

hasCoverage() protected method

protected hasCoverage ( ) : boolean
return boolean

initCoverage() protected method

protected initCoverage ( )

load() protected method

Builds the collection of pending ExecutableTest objects to run. If functional mode is enabled $this->pending will contain a collection of TestMethod objects instead of Suite objects
protected load ( )

log() protected method

Write output to JUnit format if requested
protected log ( )

logCoverage() protected method

Write coverage to file if requested
protected logCoverage ( )

run() public method

public run ( )

verifyConfiguration() protected method

Ensures a valid configuration was supplied. If not causes ParaTest to print the error message and exit immediately with an exit code of 1
protected verifyConfiguration ( )

Property Details

$coverage protected property

CoverageMerger to hold track of the accumulated coverage
protected CoverageMerger,ParaTest\Coverage $coverage
return ParaTest\Coverage\CoverageMerger

$exitcode protected property

A tallied exit code that returns the highest exit code returned out of the entire collection of tests
protected int $exitcode
return integer

$interpreter protected property

protected LogInterpreter,ParaTest\Logging $interpreter
return ParaTest\Logging\LogInterpreter

$options protected property

protected Options,ParaTest\Runners\PHPUnit $options
return ParaTest\Runners\PHPUnit\Options

$pending protected property

A collection of pending ExecutableTest objects that have yet to run
protected array $pending
return array

$printer protected property

protected ResultPrinter,ParaTest\Runners\PHPUnit $printer
return ResultPrinter

$running protected property

A collection of ExecutableTest objects that have processes currently running
protected array $running
return array