Negotiation\Tests\EncodingNegotiatorTest::testGetBestRespectsQualityOfSource PHP 메소드

testGetBestRespectsQualityOfSource() 공개 메소드

    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());
    }