You are here

public function AcceptHeaderTest::testSorting 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::testSorting()

@dataProvider provideSortingData

File

vendor/symfony/http-foundation/Tests/AcceptHeaderTest.php, line 88

Class

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSorting($string, array $values) {
  $header = AcceptHeader::fromString($string);
  $this
    ->assertEquals($values, array_keys($header
    ->all()));
}