public function AcceptHeaderTest::testFilter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testFilter($string, $filter, array $values) {
$header = AcceptHeader::fromString($string)
->filter($filter);
$this
->assertEquals($values, array_keys($header
->all()));
}