PHP Класс lithium\tests\cases\net\http\ResponseTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
_createMessage ( string $body, array $headers = [] ) : string Creates a chunked gzipped message to test response decoding.

Описание методов

_createMessage() защищенный Метод

Creates a chunked gzipped message to test response decoding.
protected _createMessage ( string $body, array $headers = [] ) : string
$body string Message body.
$headers array Message headers.
Результат string Returns a raw HTTP message with headers and body.

testConstructionWithBody() публичный Метод

testContentTypeHeaderAndTypePropertyAreSynchronized() публичный Метод

testDigestParsing() публичный Метод

public testDigestParsing ( )

testEmptyResponse() публичный Метод

public testEmptyResponse ( )

testMalformedStatus() публичный Метод

public testMalformedStatus ( )

testMessageWithNoHeaders() публичный Метод

testParseMessage() публичный Метод

public testParseMessage ( )

testParseMessageHeadersMerging() публичный Метод

testParseMessageWithContentTypeHeaderSetsType() публичный Метод

testParseMessageWithCookies() публичный Метод

testParseMessageWithRepeatingHeaderKeys() публичный Метод

testParsingContentTypeWithEncoding() публичный Метод

testParsingContentTypeWithVersionNumber() публичный Метод

testParsingContentTypeWithoutEncoding() публичный Метод

testSetCookies() публичный Метод

public testSetCookies ( )

testSetCookiesMultipleValues() публичный Метод

testStatus() публичный Метод

public testStatus ( )

testToString() публичный Метод

public testToString ( )

testToStringDoesNotAddContentTypeHeaderOnTextHtml() публичный Метод

testToStringPrefersHeadersContentTypeOverType() публичный Метод

testToStringTypeAlwaysUsesContentTypeHeader() публичный Метод

testToStringWithCookies() публичный Метод

testTransferEncodingChunkedDecode() публичный Метод

testTypeHeader() публичный Метод

public testTypeHeader ( )

testTypePriority() публичный Метод

public testTypePriority ( )

testWithoutChunksAndComment() публичный Метод

testWithoutChunksAndCommentInBody() публичный Метод

testWithoutChunksAndCommentInHtmlRoot() публичный Метод

testWithoutChunksAndRandomCommentInHtmlRoot() публичный Метод