PHP 클래스 ParaTest\Runners\PHPUnit\Runner

상속: extends BaseRunner
파일 보기 프로젝트 열기: brianium/paratest 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$tokens array A collection of available tokens based on the number of processes specified in $options

공개 메소드들

메소드 설명
__construct ( $opts = [] )
run ( ) The money maker. Runs all ExecutableTest objects in separate processes.

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

public __construct ( $opts = [] )

acquireToken() 보호된 메소드

Flag a token as acquired and not available for use
protected acquireToken ( string $tokenIdentifier )
$tokenIdentifier string

getNextAvailableToken() 보호된 메소드

Gets the next token that is available to be acquired from a finished process
protected getNextAvailableToken ( ) : boolean | array
리턴 boolean | array

initTokens() 보호된 메소드

Initialize the available test tokens based on how many processes ParaTest will be run in
protected initTokens ( )

releaseToken() 보호된 메소드

Flag a token as available for use
protected releaseToken ( string $tokenIdentifier )
$tokenIdentifier string

run() 공개 메소드

The money maker. Runs all ExecutableTest objects in separate processes.
public run ( )

프로퍼티 상세

$tokens 보호되어 있는 프로퍼티

A collection of available tokens based on the number of processes specified in $options
protected array $tokens
리턴 array