Documentation

QueryUtilTest extends TestCase
in package

FinalYes

Table of Contents

Methods

mergeQueryDataProvider()  : array<string, array{0: string, 1: array, 2: string}>
parseQueryProvider()  : array<string, array{0: string, 1: array}>
queryParamDataProvider()  : array<string, array{0: int, 1: bool, 3: array}>
rawurlencodeDataProvider()  : array<string, array{0: scalar|bool|array|null, 1: string|array}>
testBuildBooleans()  : void
testBuildQuery()  : void
testBuildQuerySort()  : void
testCanControlDecodingType()  : void
testCleanQueryParams()  : void
testDoesNotDecode()  : void
testDoesNotEncode()  : void
testEncodesWithRfc1738()  : void
testEncodesWithRfc3986()  : void
testMergeQuery()  : void
testParseDoesTrimQuestionMark()  : void
testParsesAndBuildsQueries()  : void
testParsesQueries()  : void
testRawurlencode()  : void
testRawurlencodeTypeErrorException()  : void

Methods

mergeQueryDataProvider()

public static mergeQueryDataProvider() : array<string, array{0: string, 1: array, 2: string}>
Return values
array<string, array{0: string, 1: array, 2: string}>

parseQueryProvider()

public static parseQueryProvider() : array<string, array{0: string, 1: array}>
Return values
array<string, array{0: string, 1: array}>

queryParamDataProvider()

public static queryParamDataProvider() : array<string, array{0: int, 1: bool, 3: array}>
Return values
array<string, array{0: int, 1: bool, 3: array}>

rawurlencodeDataProvider()

public static rawurlencodeDataProvider() : array<string, array{0: scalar|bool|array|null, 1: string|array}>
Return values
array<string, array{0: scalar|bool|array|null, 1: string|array}>

testCanControlDecodingType()

public testCanControlDecodingType() : void

testCleanQueryParams()

public testCleanQueryParams(int $bool_cast, bool $remove_empty, array<string, mixed> $expected) : void
Parameters
$bool_cast : int
$remove_empty : bool
$expected : array<string, mixed>
Attributes
#[DataProvider]
'queryParamDataProvider'

testEncodesWithRfc1738()

public testEncodesWithRfc1738() : void

testEncodesWithRfc3986()

public testEncodesWithRfc3986() : void

testMergeQuery()

public testMergeQuery(string $uri, array<string, string> $params, string $expected) : void
Parameters
$uri : string
$params : array<string, string>
$expected : string
Attributes
#[DataProvider]
'mergeQueryDataProvider'

testParseDoesTrimQuestionMark()

public testParseDoesTrimQuestionMark() : void

testParsesAndBuildsQueries()

public testParsesAndBuildsQueries(string $input) : void
Parameters
$input : string
Attributes
#[DataProvider]
'parseQueryProvider'

testParsesQueries()

public testParsesQueries(string $input, array<string, mixed> $output) : void
Parameters
$input : string
$output : array<string, mixed>
Attributes
#[DataProvider]
'parseQueryProvider'

testRawurlencode()

public testRawurlencode(mixed $data, string|array<int, mixed> $expected) : void
Parameters
$data : mixed
$expected : string|array<int, mixed>
Attributes
#[DataProvider]
'rawurlencodeDataProvider'

testRawurlencodeTypeErrorException()

public testRawurlencodeTypeErrorException() : void

        
On this page

Search results