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

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method 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 ( )

Protected Methods

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

Method Details

_createMessage() protected method

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

testConstructionWithBody() public method

testContentTypeHeaderAndTypePropertyAreSynchronized() public method

testDigestParsing() public method

public testDigestParsing ( )

testEmptyResponse() public method

public testEmptyResponse ( )

testMalformedStatus() public method

public testMalformedStatus ( )

testMessageWithNoHeaders() public method

testParseMessage() public method

public testParseMessage ( )

testParseMessageHeadersMerging() public method

testParseMessageWithContentTypeHeaderSetsType() public method

testParseMessageWithCookies() public method

testParseMessageWithRepeatingHeaderKeys() public method

testParsingContentTypeWithEncoding() public method

testParsingContentTypeWithVersionNumber() public method

testParsingContentTypeWithoutEncoding() public method

testSetCookies() public method

public testSetCookies ( )

testSetCookiesMultipleValues() public method

testStatus() public method

public testStatus ( )

testToString() public method

public testToString ( )

testToStringDoesNotAddContentTypeHeaderOnTextHtml() public method

testToStringPrefersHeadersContentTypeOverType() public method

testToStringTypeAlwaysUsesContentTypeHeader() public method

testToStringWithCookies() public method

testTransferEncodingChunkedDecode() public method

testTypeHeader() public method

public testTypeHeader ( )

testTypePriority() public method

public testTypePriority ( )

testWithoutChunksAndComment() public method

testWithoutChunksAndCommentInBody() public method

testWithoutChunksAndCommentInHtmlRoot() public method

testWithoutChunksAndRandomCommentInHtmlRoot() public method