public function AcceptHeaderTest::provideFromStringData 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::provideFromStringData()
File
- vendor/
symfony/ http-foundation/ Tests/ AcceptHeaderTest.php, line 39
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function provideFromStringData() {
return array(
array(
'',
array(),
),
array(
'gzip',
array(
new AcceptHeaderItem('gzip'),
),
),
array(
'gzip,deflate,sdch',
array(
new AcceptHeaderItem('gzip'),
new AcceptHeaderItem('deflate'),
new AcceptHeaderItem('sdch'),
),
),
array(
"gzip, deflate\t,sdch",
array(
new AcceptHeaderItem('gzip'),
new AcceptHeaderItem('deflate'),
new AcceptHeaderItem('sdch'),
),
),
array(
'"this;should,not=matter"',
array(
new AcceptHeaderItem('this;should,not=matter'),
),
),
);
}