ParallelTesting
Properties
$setUpProcessCallbacks array
All of the registered "setUp" process callbacks.
$setUpTestCaseCallbacks array
All of the registered "setUp" test case callbacks.
$setUpTestDatabaseCallbacks array
All of the registered "setUp" test database callbacks.
$tearDownProcessCallbacks array
All of the registered "tearDown" process callbacks.
$tearDownTestCaseCallbacks array
All of the registered "tearDown" test case callbacks.
Methods
__construct ( Container $container ) : void
Create a new parallel testing instance.
Parameters
- $container Container
resolveOptionsUsing ( $resolver ) : void
Set a callback that should be used when resolving options.
Parameters
- $callback Closure |null
resolveTokenUsing ( $resolver ) : void
Set a callback that should be used when resolving the unique process token.
Parameters
- $callback Closure |null
setUpProcess ( $callback ) : void
Register a "setUp" process callback.
Parameters
- $callback callable
setUpTestCase ( $callback ) : void
Register a "setUp" test case callback.
Parameters
- $callback callable
setUpTestDatabase ( $callback ) : void
Register a "setUp" test database callback.
Parameters
- $callback callable
tearDownProcess ( $callback ) : void
Register a "tearDown" process callback.
Parameters
- $callback callable
tearDownTestCase ( $callback ) : void
Register a "tearDown" test case callback.
Parameters
- $callback callable
callSetUpProcessCallbacks ( ) : void
Call all of the "setUp" process callbacks.
callSetUpTestCaseCallbacks ( $testCase ) : void
Call all of the "setUp" test case callbacks.
Parameters
- $testCase TestCase
callSetUpTestDatabaseCallbacks ( $database ) : void
Call all of the "setUp" test database callbacks.
Parameters
- $database string
callTearDownProcessCallbacks ( ) : void
Call all of the "tearDown" process callbacks.
callTearDownTestCaseCallbacks ( $testCase ) : void
Call all of the "tearDown" test case callbacks.
Parameters
- $testCase TestCase
option ( $option ) : mixed
Get a parallel testing option.
Parameters
- $option string
token ( ) : string|false
Gets a unique test token.
whenRunningInParallel ( $callback ) : void
Apply the callback if tests are running in parallel.
Parameters
- $callback callable
inParallel ( ) : bool
Indicates if the current tests are been run in parallel.