PHP Class Dshafik\GuzzleHttp\VcrHandler

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

Protected Properties

Property Type Description
$cassette string

Public Methods

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

Protected Methods

Method Description
__construct ( string $cassette ) Constructor

Method Details

__construct() protected method

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

__invoke() public method

Handle the request/response
public __invoke ( callable $handler ) : Closure
$handler callable
return Closure

turnOn() public static method

public static turnOn ( string $cassette ) : GuzzleHttp\HandlerStack
$cassette string fixture path
return GuzzleHttp\HandlerStack

Property Details

$cassette protected_oe property

protected string $cassette
return string