Property | Type | Description | |
---|---|---|---|
$blacklist | array | List of reserved keywords which can't be used as scope variable. |
Property | Type | Description | |
---|---|---|---|
$_backtrace | object | The scope backtrace. | |
$_backtraceFocus | string | A regexp pattern used to removes useless traces to focus on the one related to a spec file. | |
$_closure | Closur\Closure | The spec closure. | |
$_data | array | The scope's data. | |
$_failures | integer | Count the number of failure or exception. | |
$_given | array | The lazy loaded scope's data. | |
$_instances | Instances stack. | ||
$_locked | Boolean lock which avoid process() to be called in tests | ||
$_log | object | The report log of executed spec. | |
$_message | string | The spec message. | |
$_parent | The parent instance. | ||
$_passed | boolean | Stores the success value. | |
$_reporters | object | The reporters container. | |
$_root | object | The root instance. | |
$_runned | boolean | Indicates whether the scope has been runned or not. | |
$_summary | object | The execution summary instance. | |
$_timeout | integer | The timeout value. | |
$_type | object | The scope type. |
Method | Description | |
---|---|---|
__call ( string $name, array $args ) : mixed | Allow closures assigned to the scope property to be inkovable. | |
__construct ( array $config = [] ) | The Constructor. | |
__get ( string $key ) : mixed | Getter. | |
__set ( string $key, mixed $value ) : mixed | Setter. | |
backtrace ( ) : array | Gets the backtrace array. | |
backtraceFocus ( string $pattern = null ) : string | Gets/sets the regexp pattern used to removes useless traces to focus on the one related to a spec file. | |
current ( ) : |
Get the active scope instance. | |
excluded ( ) : boolean | Check for excluded mode. | |
focused ( ) : boolean | Check for focused mode. | |
given ( string $name, Closur\Closure $closure ) : object | Sets a lazy loaded data. | |
log ( $type = null, $data = [] ) | Dispatches a report up to the root scope. | |
message ( ) : array | Gets the spec's message. | |
messages ( ) : array | Gets all messages upon the root. | |
parent ( ) : |
Gets the parent instance. | |
report ( string $type, mixed $data, $byPassFocuses = false ) | Send some data to reporters. | |
reporters ( ) : object | Gets the reporters container. | |
skipIf ( boolean $condition ) | Skips specs(s) if the condition is true. | |
summary ( ) : array | Gets specs excecution results. | |
timeout ( $timeout = null ) : integer | Gets/sets the timeout. | |
type ( $type = null ) : mixed | Set/get the scope type. |
Method | Description | |
---|---|---|
_bind ( Closur\Closure $closure, string $name ) : Closur\Closure | Binds the closure to the current context. | |
_emitFocus ( ) | Applies focus up to the root. | |
_exception ( Exception $exception, boolean $inEachHook = false ) | Manages catched exception. | |
_parents ( boolean $current = false ) : array. | Gets all parent instances. | |
_skipChildren ( object $exception, boolean $emit = false ) | Skips children specs(s). |
public __construct ( array $config = [] ) | ||
$config | array | The Suite config array. Options are: -`'type'` _string_ : supported type are `'normal'` & `'focus'`. -`'message'` _string_ : the description message. -`'parent'` _object_ : the parent scope. -`'root'` _object_ : the root scope. -`'log'` _object_ : the log instance. -`'timeout'` _integer_: the timeout. |
protected _exception ( Exception $exception, boolean $inEachHook = false ) | ||
$exception | Exception | The catched exception. |
$inEachHook | boolean | Indicates if the exception occurs in a beforeEach/afterEach hook. |
protected _skipChildren ( object $exception, boolean $emit = false ) | ||
$exception | object | The exception at the origin of the skip. |
$emit | boolean | Indicated if report events should be generated. |
public backtraceFocus ( string $pattern = null ) : string | ||
$pattern | string | A wildcard pattern (i.e. `fnmatch()` style). |
return | string | The focus regexp. |
public static current ( ) : |
||
return | The object instance or `null` if there's no active instance. |
protected string $_backtraceFocus | ||
return | string |
protected Closure,Closur $_closure | ||
return | Closur\Closure |
protected int $_failures | ||
return | integer |
protected static Scope[],kahlan $_instances | ||
return |
protected $_locked |
protected object $_reporters | ||
return | object |
protected bool $_runned | ||
return | boolean |
protected object $_summary | ||
return | object |
public static array $blacklist | ||
return | array |