Property | Type | Description | |
---|---|---|---|
$_data | array | results Cached mock results method Method we are asserting args Args we are asserting success Success flag callTime Last method call |
Method | Description | |
---|---|---|
__call ( string $comparison, array $args ) : object | Validates that a given methodis called a set number of times. | |
__construct ( array $results ) : void | Constructor. Saves the results from the mock. | |
called ( string $method ) : object | Valides the method was called after the last call. | |
respondsTo ( string $method, boolean $internal = false ) : boolean | Determines if a given method can be called. | |
success ( ) : boolean | Gives back the success flag | |
with ( ) : object | Will further narrow down the original 'called' method. |
public __construct ( array $results ) : void | ||
$results | array | Results from the mock |
return | void |
public respondsTo ( string $method, boolean $internal = false ) : boolean | ||
$method | string | Name of the method. |
$internal | boolean | Provide `true` to perform check from inside the class/object. When `false` checks also for public visibility; defaults to `false`. |
return | boolean | Returns `true` if the method can be called, `false` otherwise. |
protected array $_data | ||
return | array |