CurlHandleTest
extends TestCase
Uses
HttpFactoryTrait
Table of Contents
Properties
-
$HTTP_CLIENT_FACTORY
: string
Methods
-
caOptionProvider()
: array<string|int, mixed>
-
invalidCaOptionProvider()
: array<string|int, mixed>
-
requestMethodProvider()
: array<string|int, mixed>
-
requestMethodWithBodyProvider()
: array<string|int, mixed>
-
testCaInfoFile()
: void
-
testInvalidCAException()
: void
-
testLargeBody()
: void
-
testRequestMethods()
: void
-
testRequestMethodsWithFormBody()
: void
-
testRequestMethodsWithJsonBody()
: void
-
createHandle()
: CurlHandle
-
setUp()
: void
$HTTP_CLIENT_FACTORY
protected
string
$HTTP_CLIENT_FACTORY
= \chillerlan\HTTPTest\ClientFactories\CurlClientFactory::class
caOptionProvider()
public
static caOptionProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
invalidCaOptionProvider()
public
static invalidCaOptionProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
requestMethodProvider()
public
static requestMethodProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
requestMethodWithBodyProvider()
public
static requestMethodWithBodyProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
testCaInfoFile()
public
testCaInfoFile(string $option, mixed $value, string $expectedPath, int $curl_opt, int $curl_opt_not) : void
Parameters
-
$option
: string
-
-
$value
: mixed
-
-
$expectedPath
: string
-
-
$curl_opt
: int
-
-
$curl_opt_not
: int
-
testInvalidCAException()
public
testInvalidCAException(string $option, mixed $value) : void
Parameters
-
$option
: string
-
-
$value
: mixed
-
testLargeBody()
public
testLargeBody() : void
testRequestMethods()
public
testRequestMethods(string $method) : void
Parameters
-
$method
: string
-
testRequestMethodsWithFormBody()
public
testRequestMethodsWithFormBody(string $method) : void
Parameters
-
$method
: string
-
testRequestMethodsWithJsonBody()
public
testRequestMethodsWithJsonBody(string $method) : void
Parameters
-
$method
: string
-
createHandle()
protected
createHandle(HTTPOptions $options[, string $method = 'GET' ]) : CurlHandle
Parameters
-
$options
: HTTPOptions
-
-
$method
: string
= 'GET'
-
setUp()
protected
setUp() : void