PHP Class Amp\Test\Artax\MessageTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: amphp/artax

Méthodes publiques

Méthode 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 méthode

provideHeaderExpectations() public méthode

testAppendHeaderAddsToExistingHeaderIfAlreadyExists() public méthode

testGetAllHeadersReturnsArrayOfStoredHeaders() public méthode

testGetAllHeadersReturnsEmptyArrayIfNoHeadersStored() public méthode

testGetAndSetBody() public méthode

public testGetAndSetBody ( )

testGetAndSetProtocol() public méthode

testGetHeaderFieldNameIsCaseInsensitive() public méthode

testGetHeaderReturnsStoredValue() public méthode

public testGetHeaderReturnsStoredValue ( $header, $value )

testGetHeaderThrowsExceptionOnNonexistentHeaderField() public méthode

testHasBody() public méthode

public testHasBody ( )

testHasHeaderFieldNameIsCaseInsensitive() public méthode

testHasHeaderIsFalseBeforeAssignment() public méthode

testHasHeaderTrueWhenSpecified() public méthode

public testHasHeaderTrueWhenSpecified ( $header, $value )

testRemoveAllHeaders() public méthode

testRemoveHeader() public méthode

public testRemoveHeader ( )

testSetAllHeaders() public méthode

public testSetAllHeaders ( )

testSetHeaderThrowsExceptionOnBadValue() public méthode