PHP Class Negotiation\Tests\CharsetNegotiatorTest

Inheritance: extends Negotiation\Tests\TestCase
Afficher le fichier Open project: willdurand/negotiation

Méthodes publiques

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

Méthodes protégées

Méthode Description
setUp ( )

Method Details

dataProviderForTestGetBest() public static méthode

public static dataProviderForTestGetBest ( )

dataProviderForTestParseHeader() public static méthode

public static dataProviderForTestParseHeader ( )

setUp() protected méthode

protected setUp ( )

testGetBest() public méthode

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

testGetBestDoesNotMatchPriorities() public méthode

testGetBestIgnoresNonExistentContent() public méthode

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

testGetBestRespectsPriorities() public méthode

testGetBestRespectsQualityOfSource() public méthode

testGetBestReturnsNullWithUnmatchedHeader() public méthode

testParseHeader() public méthode

public testParseHeader ( $header, $expected )