Свойство | Type | Description | |
---|---|---|---|
$config | VCR configuration. | ||
$name | string | Casette name | |
$storage | VCR\Storage\Storage | Storage used to store records and request pairs. |
Méthode | Description | |
---|---|---|
__construct ( string $name, |
Creates a new cassette. | |
getName ( ) : string | Returns the name of the current cassette. | |
hasResponse ( |
Returns true if a response was recorded for specified request. | |
isNew ( ) : boolean | Returns true if the cassette was created recently. | |
playback ( |
Returns a response for given request or null if not found. | |
record ( |
Records a request and response pair. |
Méthode | Description | |
---|---|---|
getRequestMatchers ( ) : array | Returns a list of callbacks to configured request matchers. |
public __construct ( string $name, |
||
$name | string | Name of the cassette. |
$config | Configuration to use for this cassette. | |
$storage | VCR\Storage\Storage | Storage to use for requests and responses. |
protected getRequestMatchers ( ) : array | ||
Résultat | array | List of callbacks to configured request matchers. |
public hasResponse ( |
||
$request | Request to check if it was recorded. | |
Résultat | boolean | True if a response was recorded for specified request. |
protected Configuration,vcr $config | ||
Résultat |