Documentation

MessageUtilTest extends UtilTestAbstract
in package

FinalYes

Table of Contents

Constants

CACERT  = __DIR__ . '/cacert.pem'

Methods

contentTypeProvider()  : array<string, array{0: string, 1: string|null, 2: string|null, 3: string}>
decompressExceptionFnProvider()  : array<string, array{0: string, 1: string, 2: string}>
decompressFnProvider()  : array<string, array{0: string, 1: string}>
testDecompressContent()  : void
testDecompressContentUnableToDecompressException()  : void
testDecompressContentUnknownHeaderValueException()  : void
testGetCookieFromHeader()  : void
testGetJSON()  : void
testGetXML()  : void
testMessageToJSON()  : void
testMessageToString()  : void
testSetContentLengthHeader()  : void
testSetContentTypeHeader()  : void
testSetCookie()  : void
setUp()  : void

Constants

Methods

contentTypeProvider()

public static contentTypeProvider() : array<string, array{0: string, 1: string|null, 2: string|null, 3: string}>
Return values
array<string, array{0: string, 1: string|null, 2: string|null, 3: string}>

decompressExceptionFnProvider()

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

decompressFnProvider()

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

testDecompressContent()

public testDecompressContent(string $fn, string $encoding) : void
Parameters
$fn : string
$encoding : string
Attributes
#[DataProvider]
'decompressFnProvider'

testDecompressContentUnableToDecompressException()

public testDecompressContentUnableToDecompressException(string $ext, string $fn, string $encoding) : void
Parameters
$ext : string
$fn : string
$encoding : string
Attributes
#[DataProvider]
'decompressExceptionFnProvider'

testDecompressContentUnknownHeaderValueException()

public testDecompressContentUnknownHeaderValueException() : void

testSetContentLengthHeader()

public testSetContentLengthHeader() : void

testSetContentTypeHeader()

public testSetContentTypeHeader(string $content, string|null $filename, string|null $extension, string $expectedMIME) : void
Parameters
$content : string
$filename : string|null
$extension : string|null
$expectedMIME : string
Attributes
#[DataProvider]
'contentTypeProvider'

        
On this page

Search results