Documentation

ProviderLiveTestHttpClientFactory
in package
implements HttpClientFactoryInterface

FinalYes

A PSR-18 HTTP client factory for clients used in live API tests

The phpunit constant HTTP_CLIENT_FACTORY should be set with a valid FQCN for a HttpClientFactoryInterface

Tags
see
HttpClientFactoryInterface
link
https://github.com/chillerlan/phpunit-http

Table of Contents

Interfaces

HttpClientFactoryInterface

Methods

getClient()  : ClientInterface

Methods

getClient()

public getClient(string $cacert, ResponseFactoryInterface $responseFactory) : ClientInterface
Parameters
$cacert : string
$responseFactory : ResponseFactoryInterface
Return values
ClientInterface

        
On this page

Search results