You are here

public function AcceptHeaderTest::testFirst in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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