UsesHttpClientTrait
Table of Contents
Properties
- $client : ClientInterface|null
- $request : RequestInterface|null
- $requestFactory : RequestFactoryInterface|null
- $response : ResponseInterface|null
- $streamFactory : StreamFactoryInterface|null
Methods
- createMock() : MockObject
- createRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
- createRequestInterfaceMock() : RequestInterface|MockObject
- createResponseInterfaceMock() : ResponseInterface|MockObject
- getClientInterfaceMock() : ClientInterface|MockObject
- getRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
- getRequestInterfaceMock() : RequestInterface|MockObject
- getStreamFactoryInterfaceMock() : StreamFactoryInterface|MockObject
Properties
$client
private
ClientInterface|null
$client
= null
$request
private
RequestInterface|null
$request
= null
$requestFactory
private
RequestFactoryInterface|null
$requestFactory
= null
$response
private
ResponseInterface|null
$response
= null
$streamFactory
private
StreamFactoryInterface|null
$streamFactory
= null
Methods
createMock()
protected
abstract createMock(string $originalClassName) : MockObject
Parameters
- $originalClassName : string
Return values
MockObjectcreateRequestFactoryInterfaceMock()
protected
createRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
Tags
Return values
RequestFactoryInterface|MockObjectcreateRequestInterfaceMock()
protected
createRequestInterfaceMock([int $status = 200 ]) : RequestInterface|MockObject
Parameters
- $status : int = 200
Tags
Return values
RequestInterface|MockObjectcreateResponseInterfaceMock()
protected
createResponseInterfaceMock([int $status = 200 ]) : ResponseInterface|MockObject
Parameters
- $status : int = 200
Tags
Return values
ResponseInterface|MockObjectgetClientInterfaceMock()
protected
getClientInterfaceMock() : ClientInterface|MockObject
Tags
Return values
ClientInterface|MockObjectgetRequestFactoryInterfaceMock()
protected
getRequestFactoryInterfaceMock() : RequestFactoryInterface|MockObject
Tags
Return values
RequestFactoryInterface|MockObjectgetRequestInterfaceMock()
protected
getRequestInterfaceMock([int $status = 200 ]) : RequestInterface|MockObject
Parameters
- $status : int = 200
Tags
Return values
RequestInterface|MockObjectgetStreamFactoryInterfaceMock()
protected
getStreamFactoryInterfaceMock() : StreamFactoryInterface|MockObject