public function ResponseHeaderBagTest::provideMakeDisposition

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ResponseHeaderBagTest.php, line 142

Class

ResponseHeaderBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function provideMakeDisposition() {
  return array(
    array(
      'attachment',
      'foo.html',
      'foo.html',
      'attachment; filename="foo.html"',
    ),
    array(
      'attachment',
      'foo.html',
      '',
      'attachment; filename="foo.html"',
    ),
    array(
      'attachment',
      'foo bar.html',
      '',
      'attachment; filename="foo bar.html"',
    ),
    array(
      'attachment',
      'foo "bar".html',
      '',
      'attachment; filename="foo \\"bar\\".html"',
    ),
    array(
      'attachment',
      'foo%20bar.html',
      'foo bar.html',
      'attachment; filename="foo bar.html"; filename*=utf-8\'\'foo%2520bar.html',
    ),
    array(
      'attachment',
      'föö.html',
      'foo.html',
      'attachment; filename="foo.html"; filename*=utf-8\'\'f%C3%B6%C3%B6.html',
    ),
  );
}