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