프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$config | VCR configuration. | ||
$name | string | Casette name | |
$storage | VCR\Storage\Storage | Storage used to store records and request pairs. |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | array | List of callbacks to configured request matchers. |
public hasResponse ( |
||
$request | Request to check if it was recorded. | |
리턴 | boolean | True if a response was recorded for specified request. |