PHP Class Amp\Test\Artax\MessageTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: amphp/artax

Public Methods

Method Description
provideBadHeaderValues ( )
provideHeaderExpectations ( )
testAppendHeaderAddsToExistingHeaderIfAlreadyExists ( )
testGetAllHeadersReturnsArrayOfStoredHeaders ( )
testGetAllHeadersReturnsEmptyArrayIfNoHeadersStored ( )
testGetAndSetBody ( )
testGetAndSetProtocol ( )
testGetHeaderFieldNameIsCaseInsensitive ( )
testGetHeaderReturnsStoredValue ( $header, $value )
testGetHeaderThrowsExceptionOnNonexistentHeaderField ( )
testHasBody ( )
testHasHeaderFieldNameIsCaseInsensitive ( )
testHasHeaderIsFalseBeforeAssignment ( )
testHasHeaderTrueWhenSpecified ( $header, $value )
testRemoveAllHeaders ( )
testRemoveHeader ( )
testSetAllHeaders ( )
testSetHeaderThrowsExceptionOnBadValue ( $badValue )

Method Details

provideBadHeaderValues() public method

provideHeaderExpectations() public method

testAppendHeaderAddsToExistingHeaderIfAlreadyExists() public method

testGetAllHeadersReturnsArrayOfStoredHeaders() public method

testGetAllHeadersReturnsEmptyArrayIfNoHeadersStored() public method

testGetAndSetBody() public method

public testGetAndSetBody ( )

testGetAndSetProtocol() public method

testGetHeaderFieldNameIsCaseInsensitive() public method

testGetHeaderReturnsStoredValue() public method

public testGetHeaderReturnsStoredValue ( $header, $value )

testGetHeaderThrowsExceptionOnNonexistentHeaderField() public method

testHasBody() public method

public testHasBody ( )

testHasHeaderFieldNameIsCaseInsensitive() public method

testHasHeaderIsFalseBeforeAssignment() public method

testHasHeaderTrueWhenSpecified() public method

public testHasHeaderTrueWhenSpecified ( $header, $value )

testRemoveAllHeaders() public method

testRemoveHeader() public method

public testRemoveHeader ( )

testSetAllHeaders() public method

public testSetAllHeaders ( )

testSetHeaderThrowsExceptionOnBadValue() public method