PHP Class Negotiation\Tests\CharsetNegotiatorTest

Inheritance: extends Negotiation\Tests\TestCase
Datei anzeigen Open project: willdurand/negotiation

Public Methods

Method Description
dataProviderForTestGetBest ( )
dataProviderForTestParseHeader ( )
testGetBest ( $accept, $priorities, $expected )
testGetBestDoesNotMatchPriorities ( )
testGetBestIgnoresNonExistentContent ( ) 'bu' has the highest quality rating, but is non-existent, so we expect the next highest rated 'fr' content to be returned.
testGetBestRespectsPriorities ( )
testGetBestRespectsQualityOfSource ( )
testGetBestReturnsNullWithUnmatchedHeader ( )
testParseHeader ( $header, $expected )

Protected Methods

Method Description
setUp ( )

Method Details

dataProviderForTestGetBest() public static method

public static dataProviderForTestGetBest ( )

dataProviderForTestParseHeader() public static method

public static dataProviderForTestParseHeader ( )

setUp() protected method

protected setUp ( )

testGetBest() public method

public testGetBest ( $accept, $priorities, $expected )

testGetBestDoesNotMatchPriorities() public method

testGetBestIgnoresNonExistentContent() public method

See: http://svn.apache.org/repos/asf/httpd/test/framework/trunk/t/modules/negotiation.t

testGetBestRespectsPriorities() public method

testGetBestRespectsQualityOfSource() public method

testGetBestReturnsNullWithUnmatchedHeader() public method

testParseHeader() public method

public testParseHeader ( $header, $expected )