Method |
Description |
|
after ( Closure $closure ) |
Constructs a new Hook, defining a closure to be ran after the parent
suite's closure. |
|
afterEach ( Closure $closure ) |
Constructs a new Hook, defining a closure to be ran prior to each of
the parent suite's nested suites and specs. |
|
before ( Closure $closure ) |
Constructs a new Hook, defining a closure to be ran prior to the parent
suite's closure. |
|
beforeEach ( Closure $closure ) |
Constructs a new Hook, defining a closure to be ran prior to each of
the parent suite's nested suites and specs. |
|
describe ( string $title, Closure $closure ) |
Constructs a test Suite, assigning it the given title and anonymous
function. If it's a child of another suite, a reference to the parent
suite is stored. This is done by tracking the current and previously
defined suites. |
|
getInstance ( ) : Runner |
Returns the singleton instance. |
|
it ( string $title, Closure $closure = null ) |
Constructs a new Spec, adding it to the list of specs in the current suite. |
|
run ( ) |
Starts the test runner by first invoking the associated reporter's
beforeRun() method, then iterating over all defined suites and running
their specs, and calling the reporter's afterRun() when complete. |
|
watch ( ) |
Monitors the the current working directory for modifications, and reruns
the specs in another process on change. |
|
xdescribe ( string $title, Closure $closure ) |
Constructs a test Suite, assigning it the given title and anonymous
function. If it's a child of another suite, a reference to the parent
suite is stored. This is done by tracking the current and previously
defined suites. |
|
xit ( string $title, Closure $closure = null ) |
Constructs a new Spec, adding it to the list of specs in the current
suite and mark it as pending. |
|