Documentation

GuzzleClientMock
in package

Table of Contents

Properties

$client  : Client
$container  : array<string|int, mixed>
$mock  : MockHandler

Methods

__construct()  : mixed
createJsonResponse()  : Response
getClient()  : Client
getLastRequest()  : mixed
getLastResponse()  : mixed

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $responses = [] ]) : mixed
Parameters
$responses : array<string|int, mixed> = []

createJsonResponse()

public static createJsonResponse(int $status, array<string|int, mixed> $data) : Response
Parameters
$status : int
$data : array<string|int, mixed>
Return values
Response

        
On this page

Search results