You are here

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

File

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

Class

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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'),
      ),
    ),
  );
}