You are here

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

@dataProvider provideFilterData

File

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

Class

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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