PHP Class PhlyTest\Http\Response\SerializerTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: phly/http

Public Methods

Method Description
headersWithContinuationLines ( )
messagesWithInvalidHeaders ( )
testCanDeserializeBasicResponse ( )
testCanDeserializeResponseWithHeaderContinuations ( $text )
testCanDeserializeResponseWithMultipleHeadersOfSameName ( )
testCanDeserializeResponseWithoutBody ( )
testCanDeserializeResponseWithoutHeadersButContainingBody ( )
testCanDeserializeResponseWithoutHeadersOrBody ( )
testDeserializationRaisesExceptionForInvalidStatusLine ( )
testDeserializationRaisesExceptionForMalformedHeaders ( $message, $exceptionMessage )
testFromStreamThrowsExceptionWhenStreamIsNotReadable ( )
testFromStreamThrowsExceptionWhenStreamIsNotSeekable ( )
testOmitsReasonPhraseFromStatusLineIfEmpty ( )
testSerializesBasicResponse ( )
testSerializesMultipleHeadersCorrectly ( )

Method Details

headersWithContinuationLines() public method

messagesWithInvalidHeaders() public method

testCanDeserializeBasicResponse() public method

testCanDeserializeResponseWithHeaderContinuations() public method

testCanDeserializeResponseWithMultipleHeadersOfSameName() public method

testCanDeserializeResponseWithoutBody() public method

testCanDeserializeResponseWithoutHeadersButContainingBody() public method

testCanDeserializeResponseWithoutHeadersOrBody() public method

testDeserializationRaisesExceptionForInvalidStatusLine() public method

testDeserializationRaisesExceptionForMalformedHeaders() public method

public testDeserializationRaisesExceptionForMalformedHeaders ( $message, $exceptionMessage )

testFromStreamThrowsExceptionWhenStreamIsNotReadable() public method

testFromStreamThrowsExceptionWhenStreamIsNotSeekable() public method

testOmitsReasonPhraseFromStatusLineIfEmpty() public method

testSerializesBasicResponse() public method

testSerializesMultipleHeadersCorrectly() public method