Negotiation\Tests\EncodingNegotiatorTest::testGetBestRespectsQualityOfSource PHP Method

testGetBestRespectsQualityOfSource() public method

    public function testGetBestRespectsQualityOfSource()
    {
        $accept = $this->negotiator->getBest('gzip;q=0.7,identity', array('identity;q=0.5', 'gzip;q=0.9'));
        $this->assertInstanceOf('Negotiation\\AcceptEncoding', $accept);
        $this->assertEquals('gzip', $accept->getType());
    }