You are here

public function AcceptHeaderTest::provideToStringData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/AcceptHeaderTest.php \Symfony\Component\HttpFoundation\Tests\AcceptHeaderTest::provideToStringData()

File

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

Class

AcceptHeaderTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideToStringData() {
  return array(
    array(
      array(),
      '',
    ),
    array(
      array(
        new AcceptHeaderItem('gzip'),
      ),
      'gzip',
    ),
    array(
      array(
        new AcceptHeaderItem('gzip'),
        new AcceptHeaderItem('deflate'),
        new AcceptHeaderItem('sdch'),
      ),
      'gzip,deflate,sdch',
    ),
    array(
      array(
        new AcceptHeaderItem('this;should,not=matter'),
      ),
      'this;should,not=matter',
    ),
  );
}