public function AcceptHeaderTest::testFirst in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/AcceptHeaderTest.php \Symfony\Component\HttpFoundation\Tests\AcceptHeaderTest::testFirst()
File
- vendor/
symfony/ http-foundation/ Tests/ AcceptHeaderTest.php, line 19
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testFirst() {
$header = AcceptHeader::fromString('text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c');
$this
->assertSame('text/html', $header
->first()
->getValue());
}