Class AbstractTest
Base class for Peridot Suites and Tests
- Peridot\Core\AbstractTest implements Peridot\Core\TestInterface uses Peridot\Core\HasEventEmitterTrait
Indirect known subclasses
Peridot\Test\ItWasRun
public
|
|
public
|
|
public
|
|
public
string
|
|
public
callable
|
|
public
mixed|
|
|
public
|
|
public
string
|
|
public
boolean|null
|
|
public
|
|
public
|
#
applyFocusPatterns( string|null $focusPattern, string|null $skipPattern = null )
Set the focused status of the test and its children according to the supplied focus pattern and/or skip pattern |
public
array
|
|
public
array
|
|
public
|
#
forEachNodeBottomUp( callable $fn )
Execute a callback for each node in this test, starting at the bottom of the tree. |
public
|
#
forEachNodeTopDown( callable $fn )
Execute a callback for each node in this test, starting at the top of the tree. |
public
|
|
public
mixed
|
|
public
string
|
|
public
|
|
public
|
#
setDefinitionArguments( array $args )
Set arguments to be passed to the test definition when invoked. |
public
array
|
#
getDefinitionArguments( )
Return an array of arguments to be passed to the test definition when invoked. |
getEventEmitter(),
isFocused(),
run(),
setEventEmitter()
|
getEventEmitter(),
setEventEmitter()
|
protected
callable
|
$definition
The test definition as a callable. |
|
protected
array
|
$setUpFns
A collection of functions to run before tests execute. |
#
[]
|
protected
array
|
$tearDownFns
A collection of functions to run after tests execute. |
#
[]
|
protected
string
|
$description
|
|
protected
|
$parent
|
|
protected
boolean|null
|
$pending
|
#
null
|
protected
boolean
|
$focused
|
|
protected
|
$scope
|
|
protected
string
|
$file
|
|
protected
array
|
$definitionArguments
|
#
[]
|
$eventEmitter
|