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

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

See: http://svn.apache.org/repos/asf/httpd/test/framework/trunk/t/modules/negotiation.t
    public function testGetBestIgnoresNonExistentContent()
    {
        $acceptCharset = 'en; q=0.1, fr; q=0.4, bu; q=1.0';
        $accept = $this->negotiator->getBest($acceptCharset, array('en', 'fr'));
        $this->assertInstanceOf('Negotiation\\AcceptCharset', $accept);
        $this->assertEquals('fr', $accept->getValue());
    }