Свойство | Тип | Описание | |
---|---|---|---|
$_actual | mixed | The current value to test. | |
$_deferred | array | Deferred expectation. | |
$_logs | array | The result logs. | |
$_not | boolean | If true, the result of the test will be inverted. | |
$_passed | boolean | Stores the success value. | |
$_timeout | integer | The timeout value. |
Метод | Описание | |
---|---|---|
__call ( string $matcherName, array $args ) : boolean | Calls a registered matcher. | |
__construct ( array $config = [] ) | Constructor. | |
__get ( $name ) | Magic getter, if called with 'not' invert the _not attribute. | |
_matcher ( string $matcherName, mixed $actual ) : string | Returns a compatible matcher class name according to a passed actual value. | |
actual ( ) : boolean | Returns the actual value. | |
clear ( ) | Clears the instance. | |
deferred ( ) : array | Returns the deferred expectations. | |
logs ( ) | Returns the logs. | |
not ( ) : boolean | Returns the not value. | |
passed ( ) : boolean | Checks if all test passed. | |
timeout ( ) | Returns the timeout value. |
Метод | Описание | |
---|---|---|
_log ( boolean $boolean, array $data = [] ) : boolean | Logs a result. | |
_resolve ( ) | Resolves deferred matchers. | |
_run ( ) : mixed | Processes the expectation. | |
_spin ( Closure $closure ) | Runs the expectation. |
public __construct ( array $config = [] ) | ||
$config | array | The config array. Options are: -`'actual'` _mixed_ : the actual value. -`'timeout'` _integer_ : the timeout value. |
public __get ( $name ) |
protected bool $_not | ||
Результат | boolean |