PHP Class Dshafik\GuzzleHttp\VcrHandler

Records and automatically replays responses on subsequent requests for unit testing
Afficher le fichier Open project: dshafik/guzzlehttp-vcr Class Usage Examples

Protected Properties

Свойство Type Description
$cassette string

Méthodes publiques

Méthode Description
__invoke ( callable $handler ) : Closure Handle the request/response
turnOn ( string $cassette ) : GuzzleHttp\HandlerStack

Méthodes protégées

Méthode Description
__construct ( string $cassette ) Constructor

Method Details

__construct() protected méthode

Constructor
protected __construct ( string $cassette )
$cassette string fixture path

__invoke() public méthode

Handle the request/response
public __invoke ( callable $handler ) : Closure
$handler callable
Résultat Closure

turnOn() public static méthode

public static turnOn ( string $cassette ) : GuzzleHttp\HandlerStack
$cassette string fixture path
Résultat GuzzleHttp\HandlerStack

Property Details

$cassette protected_oe property

protected string $cassette
Résultat string