public function AcceptHeaderTest::provideFromStringData

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/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'),
      ),
    ),
  );
}