You are here

public function AcceptHeaderItemTest::provideFromStringData in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/AcceptHeaderItemTest.php, line 28

Class

AcceptHeaderItemTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideFromStringData() {
  return array(
    array(
      'text/html',
      'text/html',
      array(),
    ),
    array(
      '"this;should,not=matter"',
      'this;should,not=matter',
      array(),
    ),
    array(
      "text/plain; charset=utf-8;param=\"this;should,not=matter\";\tfootnotes=true",
      'text/plain',
      array(
        'charset' => 'utf-8',
        'param' => 'this;should,not=matter',
        'footnotes' => 'true',
      ),
    ),
    array(
      '"this;should,not=matter";charset=utf-8',
      'this;should,not=matter',
      array(
        'charset' => 'utf-8',
      ),
    ),
  );
}