class Environment

Testing environment.

Constants

VariableColors

Should Test use console colors?

VariableRunner

Test is run by Runner

VariableCoverageEngine

Code coverage engine

VariableCoverage

Code coverage file

VariableThread

Thread number when run tests in multi threads

deprecated COLORS

deprecated RUNNER

deprecated COVERAGE_ENGINE

deprecated COVERAGE

deprecated THREAD

Properties

static $checkAssertions
static $useColors

Methods

static void
setup()

Configures testing environment.

static void
setupColors()

Configures colored output.

static void
setupErrors()

Configures PHP error handling.

static void
setupFunctions()

Creates global functions test(), testException(), setUp() and tearDown().

static void
handleException(Throwable $e)

No description

static void
skip(string $message = '')

Skips this test.

static void
lock(string $name = '', string $path = '')

Locks the parallel tests.

static array
getTestAnnotations()

Returns current test annotations.

static void
bypassFinals()

Removes keyword final from source codes.

static array
loadData()

Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()

static void
exit(int $code = 0)

No description

static void
print(string $s)

No description

Details

at line 59
static void setup()

Configures testing environment.

Return Value

void

at line 85
static void setupColors()

Configures colored output.

Return Value

void

at line 108
static void setupErrors()

Configures PHP error handling.

Return Value

void

at line 151
static void setupFunctions()

Creates global functions test(), testException(), setUp() and tearDown().

Return Value

void

at line 160
static void handleException(Throwable $e)

internal  
 

No description

Parameters

Throwable $e

Return Value

void

at line 171
static void skip(string $message = '')

Skips this test.

Parameters

string $message

Return Value

void

at line 183
static void lock(string $name = '', string $path = '')

Locks the parallel tests.

Parameters

string $name
string $path

lock store directory

Return Value

void

at line 196
static array getTestAnnotations()

Returns current test annotations.

Return Value

array

at line 208
static void bypassFinals()

Removes keyword final from source codes.

Return Value

void

at line 227
static array loadData()

Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()

Return Value

array

at line 256
static void exit(int $code = 0)

No description

Parameters

int $code

Return Value

void

at line 264
static void print(string $s)

internal  
 

No description

Parameters

string $s

Return Value

void