Negotiation\Tests\CharsetNegotiatorTest::testGetBestRespectsQualityOfSource PHP Метод

testGetBestRespectsQualityOfSource() публичный Метод

    public function testGetBestRespectsQualityOfSource()
    {
        $accept = $this->negotiator->getBest('utf-8;q=0.5,iso-8859-1', array('iso-8859-1;q=0.3', 'utf-8;q=0.9', 'utf-16;q=1.0'));
        $this->assertInstanceOf('Negotiation\\AcceptCharset', $accept);
        $this->assertEquals('utf-8', $accept->getType());
    }