PHP Class Tester\Runner\Job

Afficher le fichier Open project: nette/tester Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getArguments() public méthode

Returns script arguments.
public getArguments ( ) : string[]
Résultat string[]

getEnvironmentVariable() public méthode

public getEnvironmentVariable ( $name ) : string
Résultat string

getErrorOutput() public méthode

Returns test error output.
public getErrorOutput ( ) : string | null
Résultat string | null

getExitCode() public méthode

Returns exit code.
public getExitCode ( ) : integer
Résultat integer

getFile() public méthode

Returns test file path.
public getFile ( ) : string
Résultat string

getHeaders() public méthode

Returns output headers.
public getHeaders ( ) : string[]
Résultat string[]

getOutput() public méthode

Returns test output.
public getOutput ( ) : string
Résultat string

isRunning() public méthode

Checks if the test is still running.
public isRunning ( ) : boolean
Résultat boolean

run() public méthode

Runs single test.
public run ( $flags = NULL ) : void
Résultat void

setEnvironmentVariable() public méthode

public setEnvironmentVariable ( $name, $value ) : void
Résultat void