Documentation

CurlHandleTest extends TestCase
in package
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

Properties

$HTTP_CLIENT_FACTORY

protected string $HTTP_CLIENT_FACTORY = \chillerlan\HTTPTest\ClientFactories\CurlClientFactory::class

Methods

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

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

        
On this page

Search results