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
CACERT
protected
mixed
CACERT
= __DIR__ . '/cacert.pem'
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
testGetCookieFromHeader()
public
testGetCookieFromHeader() : void
testGetJSON()
public
testGetJSON() : void
testGetXML()
public
testGetXML() : void
testMessageToJSON()
public
testMessageToJSON() : void
testMessageToString()
public
testMessageToString() : 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'
testSetCookie()
public
testSetCookie() : void
setUp()
protected
setUp() : void