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

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

    public function testGetBestRespectsQualityOfSource()
    {
        $accept = $this->negotiator->getBest('text/html,text/*;q=0.7', array('text/html;q=0.5', 'text/plain;q=0.9'));
        $this->assertInstanceOf('Negotiation\\Accept', $accept);
        $this->assertEquals('text/plain', $accept->getType());
    }