Свойство | Type | Description | |
---|---|---|---|
$_backtrace | array | The expectation backtrace reference. | |
$_description | array | The description report. | |
$_expected | array | The expected method method name to be called. | |
$_messages | object | The messages instance. | |
$_ordered | boolean | If true, will take the calling order into account. | |
$_report | array | The report. | |
$_times | integer | Number of occurences to match. |
Méthode | Description | |
---|---|---|
__construct ( string | object $actual, string $expected ) | Constructor | |
__get ( $name ) | Magic getter, if called with 'ordered' will set ordered to true. | |
_buildDescription ( mixed $startIndex ) | Build the description of the runned ::match() call. | |
backtrace ( ) : object | Gets the backtrace reference. | |
description ( ) | Returns the description report. | |
match ( mixed $actual, mixed $expected = null ) : boolean | Checks that $actual receive the $expected message. | |
once ( ) : self | Sets the number of occurences. | |
resolve ( ) : boolean | Resolves the matching. | |
times ( integer $times = null ) : mixed | Gets/sets the number of occurences. | |
where ( $requirements = [] ) : self | Set arguments requirement indexed by method name. | |
with ( ) : self | Sets arguments requirement. |
Méthode | Description | |
---|---|---|
_check ( mixed $reference ) | Check the actual value can receive messages. | |
_reference ( mixed $reference ) | Return the actual reference which must be used. | |
_watch ( $message ) | Watch a message. |
public __get ( $name ) |
public _buildDescription ( mixed $startIndex ) | ||
$startIndex | mixed | The startIndex in calls log. |
protected _reference ( mixed $reference ) | ||
$reference | mixed | An instance or a fully-namespaced class name. |
public where ( $requirements = [] ) : self | ||
Résultat | self |
protected array $_backtrace | ||
Résultat | array |
protected array $_description | ||
Résultat | array |
protected array $_expected | ||
Résultat | array |
protected bool $_ordered | ||
Résultat | boolean |