NSWDPC\Utilities\Cloudflare\Tests\MockCloudflareAdapter
Synopsis
class MockCloudflareAdapter
extends Guzzle
{
- // constants
- const LOCALHOST_URI = 'http://localhost';
- // members
- protected $mock_client;
- protected $uri;
- protected $base_uri;
- protected $data;
- protected $headers;
- protected $client_headers;
- // methods
- public void __construct()
- protected void getEndpointUri()
- public void request()
- protected void mockCheckError()
- public void getBodyByUri()
- public void getLastUri()
- public void getData()
- public void getHeaders()
- public void getClientHeaders()
- public void getClient()
Hierarchy
Extends
- Cloudflare\API\Adapter\Guzzle
Tasks
Line | Task |
---|---|
89+ | modify body based on $uri |
Constants
Name | Value |
---|---|
LOCALHOST_URI | 'http://localhost' |
Members
protected
- $base_uri
- $client_headers
- $data
- $headers
- $mock_client
- $uri
Methods
protected
- getEndpointUri()
- mockCheckError() — checkError in the Cloudflare Adapter is private
public
- __construct()
- getBodyByUri() — Set a mock body for the response
- getClient()
- getClientHeaders()
- getData()
- getHeaders()
- getLastUri()
- request()