Method |
Description |
|
__construct ( array $config = [] ) |
The Constructor. |
|
afterAll ( Closure $closure ) : self |
Executed after tests. |
|
afterEach ( Closure $closure ) : self |
Executed after each tests. |
|
autoclear ( ) |
Autoclears plugins. |
|
beforeAll ( Closure $closure ) : self |
Executed before tests. |
|
beforeEach ( Closure $closure ) : self |
Executed before each tests. |
|
callbacks ( string $type ) : array |
Gets callbacks. |
|
children ( ) : array |
Gets children. |
|
context ( string $message, Closure $closure, null $timeout = null, string $type = 'normal' ) : Suite |
Adds a context related spec. |
|
describe ( string $message, Closure $closure, $timeout = null, $type = 'normal' ) : Suite |
Adds a group/class related spec. |
|
enabled ( ) : integer |
Gets number of enabled specs. |
|
failfast ( ) : boolean; |
Returns true if the suite reach the number of allowed failure by the fail-fast parameter. |
|
fcontext ( string $message, Closure $closure, $timeout = null ) : Suite |
Adds an focused context related spec. |
|
fdescribe ( string $message, Closure $closure, $timeout = null ) : Suite |
Adds an focused group/class related spec. |
|
fit ( string | Closur\Closure $message, Closur\Closure | null $closure = null, $timeout = null ) : Specification |
Adds an focused spec. |
|
hash ( mixed $reference ) : string |
Generates a hash from an instance or a string. |
|
it ( string | Closur\Closure $message, Closure $closure = null, $timeout = null, string $type = 'normal' ) : Specification |
Adds a spec. |
|
passed ( ) : boolean |
Checks if all test passed. |
|
register ( mixed $hash ) |
Registers a hash. [Mainly used for optimization] |
|
registered ( string $hash = null ) : array | boolean |
Gets registered hashes. [Mainly used for optimizations] |
|
reset ( ) |
Clears the registered hash. |
|
run ( array $options = [] ) : boolean |
Runs all specs. |
|
runCallbacks ( string $name, $recursive = true ) |
Runs a callback. |
|
status ( integer $status = null ) : boolean |
Gets exit status code according passed results. |
|
stop ( ) |
Triggers the stop event. |
|
total ( ) : integer |
Gets number of total specs. |
|
xcontext ( string $message, Closure $closure, $timeout = null ) |
Comments out a context related spec. |
|
xdescribe ( string $message, Closure $closure, $timeout = null ) |
Comments out a group/class related spec. |
|
xit ( string | Closur\Closure $message, Closur\Closure | null $closure = null, $timeout = null ) |
Comments out a spec. |
|