PHP Class Tester\Runner\Job

Mostra file Open project: nette/tester Class Usage Examples

Public Methods

Method Description
__construct ( $testFile, Tester\Runner\PhpInterpreter $interpreter, array $args = NULL, array $envVars = NULL ) : void
getArguments ( ) : string[] Returns script arguments.
getEnvironmentVariable ( $name ) : string
getErrorOutput ( ) : string | null Returns test error output.
getExitCode ( ) : integer Returns exit code.
getFile ( ) : string Returns test file path.
getHeaders ( ) : string[] Returns output headers.
getOutput ( ) : string Returns test output.
isRunning ( ) : boolean Checks if the test is still running.
run ( $flags = NULL ) : void Runs single test.
setEnvironmentVariable ( $name, $value ) : void

Method Details

__construct() public method

public __construct ( $testFile, Tester\Runner\PhpInterpreter $interpreter, array $args = NULL, array $envVars = NULL ) : void
$interpreter Tester\Runner\PhpInterpreter
$args array
$envVars array
return void

getArguments() public method

Returns script arguments.
public getArguments ( ) : string[]
return string[]

getEnvironmentVariable() public method

public getEnvironmentVariable ( $name ) : string
return string

getErrorOutput() public method

Returns test error output.
public getErrorOutput ( ) : string | null
return string | null

getExitCode() public method

Returns exit code.
public getExitCode ( ) : integer
return integer

getFile() public method

Returns test file path.
public getFile ( ) : string
return string

getHeaders() public method

Returns output headers.
public getHeaders ( ) : string[]
return string[]

getOutput() public method

Returns test output.
public getOutput ( ) : string
return string

isRunning() public method

Checks if the test is still running.
public isRunning ( ) : boolean
return boolean

run() public method

Runs single test.
public run ( $flags = NULL ) : void
return void

setEnvironmentVariable() public method

public setEnvironmentVariable ( $name, $value ) : void
return void