Method | Description | |
---|---|---|
addRequestMatcher ( string $name, callable $callback ) : |
Adds a new RequestMatcher callback. | |
enableLibraryHooks ( string | string[] $hooks ) : |
Enables specified LibraryHook(s) by its name. | |
enableRequestMatchers ( array $matchers ) : |
Enables specified RequestMatchers by its name. | |
getBlackList ( ) : array | Returns the current blacklist. | |
getCassettePath ( ) : string | Returns the path to where cassettes are stored. | |
getLibraryHooks ( ) : string[] | Returns a list of enabled LibraryHook class names. | |
getMode ( ) : string | Returns the current mode. | |
getRequestMatchers ( ) : array | Returns a list of enabled RequestMatcher callbacks. | |
getStorage ( ) : string | Returns the class name of the storage to use. | |
getWhiteList ( ) : array | Returns a list of whitelisted paths. | |
setBlackList ( string | string[] $paths ) : |
Sets one or more paths to blacklist. | |
setCassettePath ( string $cassettePath ) : |
Sets the cassette path where a cassettes should be stored in. | |
setMode ( string $mode ) : |
Sets the current mode. | |
setStorage ( string $storageName ) | Enables a storage by name. | |
setWhiteList ( string | array $paths ) : |
Sets a list of paths to whitelist when processing in the StreamProcessor. |
Method | Description | |
---|---|---|
assertValidCassettePath ( string $cassettePath ) | Validates a specified cassette path. |
public addRequestMatcher ( string $name, callable $callback ) : |
||
$name | string | Name of the RequestMatcher. |
$callback | callable | A callback taking two Request objects as parameters and returns true if those match. |
return |
public enableLibraryHooks ( string | string[] $hooks ) : |
||
$hooks | string | string[] | Name of the LibraryHook(s) to enable. |
return |
public enableRequestMatchers ( array $matchers ) : |
||
$matchers | array | List of RequestMatcher names to enable. |
return |
public getBlackList ( ) : array | ||
return | array |
public getCassettePath ( ) : string | ||
return | string | Path to where cassettes are stored. |
public getLibraryHooks ( ) : string[] | ||
return | string[] | List of LibraryHook class names. |
public getRequestMatchers ( ) : array | ||
return | array | List of enabled RequestMatcher callbacks. |
public getStorage ( ) : string | ||
return | string | Class name of the storage to use. |
public getWhiteList ( ) : array | ||
return | array |
public setBlackList ( string | string[] $paths ) : |
||
$paths | string | string[] | Path(s) to blacklist. |
return |
public setCassettePath ( string $cassettePath ) : |
||
$cassettePath | string | Path where to store cassettes. |
return |
public setStorage ( string $storageName ) | ||
$storageName | string | Name of the storage to enable. |
public setWhiteList ( string | array $paths ) : |
||
$paths | string | array | Single path or list of path which are whitelisted. |
return |