PHP Class lithium\tests\cases\net\http\ResponseTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Méthode Description
testConstructionWithBody ( )
testContentTypeHeaderAndTypePropertyAreSynchronized ( )
testDigestParsing ( )
testEmptyResponse ( )
testMalformedStatus ( )
testMessageWithNoHeaders ( )
testParseMessage ( )
testParseMessageHeadersMerging ( )
testParseMessageWithContentTypeHeaderSetsType ( )
testParseMessageWithCookies ( )
testParseMessageWithRepeatingHeaderKeys ( )
testParsingContentTypeWithEncoding ( )
testParsingContentTypeWithVersionNumber ( )
testParsingContentTypeWithoutEncoding ( )
testSetCookies ( )
testSetCookiesMultipleValues ( )
testStatus ( )
testToString ( )
testToStringDoesNotAddContentTypeHeaderOnTextHtml ( )
testToStringPrefersHeadersContentTypeOverType ( )
testToStringTypeAlwaysUsesContentTypeHeader ( )
testToStringWithCookies ( )
testTransferEncodingChunkedDecode ( )
testTypeHeader ( )
testTypePriority ( )
testWithoutChunksAndComment ( )
testWithoutChunksAndCommentInBody ( )
testWithoutChunksAndCommentInHtmlRoot ( )
testWithoutChunksAndRandomCommentInHtmlRoot ( )

Méthodes protégées

Méthode Description
_createMessage ( string $body, array $headers = [] ) : string Creates a chunked gzipped message to test response decoding.

Method Details

_createMessage() protected méthode

Creates a chunked gzipped message to test response decoding.
protected _createMessage ( string $body, array $headers = [] ) : string
$body string Message body.
$headers array Message headers.
Résultat string Returns a raw HTTP message with headers and body.

testConstructionWithBody() public méthode

testContentTypeHeaderAndTypePropertyAreSynchronized() public méthode

testDigestParsing() public méthode

public testDigestParsing ( )

testEmptyResponse() public méthode

public testEmptyResponse ( )

testMalformedStatus() public méthode

public testMalformedStatus ( )

testMessageWithNoHeaders() public méthode

testParseMessage() public méthode

public testParseMessage ( )

testParseMessageHeadersMerging() public méthode

testParseMessageWithContentTypeHeaderSetsType() public méthode

testParseMessageWithCookies() public méthode

testParseMessageWithRepeatingHeaderKeys() public méthode

testParsingContentTypeWithEncoding() public méthode

testParsingContentTypeWithVersionNumber() public méthode

testParsingContentTypeWithoutEncoding() public méthode

testSetCookies() public méthode

public testSetCookies ( )

testSetCookiesMultipleValues() public méthode

testStatus() public méthode

public testStatus ( )

testToString() public méthode

public testToString ( )

testToStringDoesNotAddContentTypeHeaderOnTextHtml() public méthode

testToStringPrefersHeadersContentTypeOverType() public méthode

testToStringTypeAlwaysUsesContentTypeHeader() public méthode

testToStringWithCookies() public méthode

testTransferEncodingChunkedDecode() public méthode

testTypeHeader() public méthode

public testTypeHeader ( )

testTypePriority() public méthode

public testTypePriority ( )

testWithoutChunksAndComment() public méthode

testWithoutChunksAndCommentInBody() public méthode

testWithoutChunksAndCommentInHtmlRoot() public méthode

testWithoutChunksAndRandomCommentInHtmlRoot() public méthode