PHP Class Negotiation\Tests\NegotiatorTest

Author: William Durand ([email protected])
Inheritance: extends Negotiation\Tests\TestCase
Show file Open project: willdurand/negotiation

Public Methods

Method Description
dataProviderForTestFindMatches ( )
dataProviderForTestGetBest ( )
dataProviderForTestParseHeader ( )
testFindMatches ( $headerParts, $priorities, $expected )
testGetBest ( $header, $priorities, $expected )
testGetBestInvalidMediaType ( )
testGetBestRespectsQualityOfSource ( )
testParseHeader ( $header, $expected )

Protected Methods

Method Description
setUp ( )

Method Details

dataProviderForTestFindMatches() public static method

public static dataProviderForTestFindMatches ( )

dataProviderForTestGetBest() public static method

public static dataProviderForTestGetBest ( )

dataProviderForTestParseHeader() public static method

public static dataProviderForTestParseHeader ( )

setUp() protected method

protected setUp ( )

testFindMatches() public method

public testFindMatches ( $headerParts, $priorities, $expected )

testGetBest() public method

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

testGetBestInvalidMediaType() public method

testGetBestRespectsQualityOfSource() public method

testParseHeader() public method

public testParseHeader ( $header, $expected )