public function AcceptHeaderTest::testFromString 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::testFromString()
@dataProvider provideFromStringData
File
- vendor/
symfony/ http-foundation/ Tests/ AcceptHeaderTest.php, line 28
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testFromString($string, array $items) {
$header = AcceptHeader::fromString($string);
$parsed = array_values($header
->all());
// reset index since the fixtures don't have them set
foreach ($parsed as $item) {
$item
->setIndex(0);
}
$this
->assertEquals($items, $parsed);
}