Environment
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
Configures testing environment.
Configures colored output.
Configures PHP error handling.
Creates global functions test(), testException(), setUp() and tearDown().
Skips this test.
Locks the parallel tests.
Returns current test annotations.
Removes keyword final from source codes.
Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()
No description
No description
Details
at line 56
static void
setup()
Configures testing environment.
at line 82
static void
setupColors()
Configures colored output.
at line 105
static void
setupErrors()
Configures PHP error handling.
at line 148
static void
setupFunctions()
Creates global functions test(), testException(), setUp() and tearDown().
at line 157
static void
handleException(Throwable $e)
internal |
No description
at line 168
static void
skip(string $message = '')
Skips this test.
at line 180
static void
lock(string $name = '', string $path = '')
Locks the parallel tests.
at line 193
static array
getTestAnnotations()
Returns current test annotations.
at line 205
static void
bypassFinals()
Removes keyword final from source codes.
at line 224
static array
loadData()
Loads data according to the file annotation or specified by Tester\Runner\TestHandler::initiateDataProvider()
at line 253
static void
exit(int $code = 0)
No description
at line 261
static void
print(string $s)
internal |
No description