PHP 클래스 Dshafik\GuzzleHttp\VcrHandler

Records and automatically replays responses on subsequent requests for unit testing
파일 보기 프로젝트 열기: dshafik/guzzlehttp-vcr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cassette string

공개 메소드들

메소드 설명
__invoke ( callable $handler ) : Closure Handle the request/response
turnOn ( string $cassette ) : GuzzleHttp\HandlerStack

보호된 메소드들

메소드 설명
__construct ( string $cassette ) Constructor

메소드 상세

__construct() 보호된 메소드

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

__invoke() 공개 메소드

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

turnOn() 공개 정적인 메소드

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

프로퍼티 상세

$cassette 보호되어 있는 프로퍼티

protected string $cassette
리턴 string