프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_expectations | List of expectations. | ||
$_return | mixed | Store the return value of the spec closure. |
메소드 | 설명 | |
---|---|---|
__construct ( array $config = [] ) | Constructor. | |
expect ( |
The expect statement. | |
logs ( ) : array | Returns execution log. | |
passed ( &$return = null ) : boolean | Checks if all test passed. | |
waitsFor ( |
The waitsFor statement. |
메소드 | 설명 | |
---|---|---|
_execute ( ) | Processes the spec. | |
_process ( ) | Processes a child specs. | |
_specEnd ( $runAfterEach = true ) | Spec end helper. | |
_specStart ( ) | Spec start helper. |
public __construct ( array $config = [] ) | ||
$config | array | The Suite config array. Options are: -`'closure'` _Closure_ : the closure of the test. -`'message'` _string_ : the spec message. -`'scope'` _string_ : supported scope are `'normal'` & `'focus'`. |
public expect ( |
||
$actual | The expression to check | |
리턴 |
protected Expectation[],kahlan $_expectations | ||
리턴 |