PHP 클래스 Tester\Runner\Runner

저자: David Grudl
파일 보기 프로젝트 열기: nette/tester 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$outputHandlers Tester\Runner\OutputHandler[]
$paths paths to test files/directories
$stopOnFail boolean
$testHandler Tester\Runner\TestHandler
$threadCount run in parallel threads

공개 메소드들

메소드 설명
__construct ( Tester\Runner\PhpInterpreter $interpreter )
addJob ( Job $job ) : void Appends new job to queue.
getEnvironmentVariables ( ) : array
getInterpreter ( ) : Tester\Runner\PhpInterpreter
getJobCount ( ) : integer Get count of jobs.
getResults ( ) : array
run ( ) : boolean Runs all tests.
setEnvironmentVariable ( $name, $value ) : void
writeResult ( $testName, $result, $message = NULL ) : void Writes to output handlers.

비공개 메소드들

메소드 설명
findTests ( $path ) : void
installInterruptHandler ( ) : void
isInterrupted ( ) : boolean
removeInterruptHandler ( ) : void

메소드 상세

__construct() 공개 메소드

public __construct ( Tester\Runner\PhpInterpreter $interpreter )
$interpreter Tester\Runner\PhpInterpreter

addJob() 공개 메소드

Appends new job to queue.
public addJob ( Job $job ) : void
$job Job
리턴 void

getEnvironmentVariables() 공개 메소드

public getEnvironmentVariables ( ) : array
리턴 array

getInterpreter() 공개 메소드

public getInterpreter ( ) : Tester\Runner\PhpInterpreter
리턴 Tester\Runner\PhpInterpreter

getJobCount() 공개 메소드

Get count of jobs.
public getJobCount ( ) : integer
리턴 integer

getResults() 공개 메소드

public getResults ( ) : array
리턴 array

run() 공개 메소드

Runs all tests.
public run ( ) : boolean
리턴 boolean

setEnvironmentVariable() 공개 메소드

public setEnvironmentVariable ( $name, $value ) : void
리턴 void

writeResult() 공개 메소드

Writes to output handlers.
public writeResult ( $testName, $result, $message = NULL ) : void
리턴 void

프로퍼티 상세

$outputHandlers 공개적으로 프로퍼티

public OutputHandler[],Tester\Runner $outputHandlers
리턴 Tester\Runner\OutputHandler[]

$paths 공개적으로 프로퍼티

paths to test files/directories
public $paths

$stopOnFail 공개적으로 프로퍼티

public bool $stopOnFail
리턴 boolean

$testHandler 공개적으로 프로퍼티

public TestHandler,Tester\Runner $testHandler
리턴 Tester\Runner\TestHandler

$threadCount 공개적으로 프로퍼티

run in parallel threads
public $threadCount