You are here

public function UnicodeTest::providerTestMimeHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerTestMimeHeader()

Data provider for testMimeHeader().

Return value

array An array containing a string and its encoded value.

See also

testMimeHeader()

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 90
Contains \Drupal\Tests\Component\Utility\UnicodeTest.

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestMimeHeader() {
  return array(
    array(
      'tést.txt',
      '=?UTF-8?B?dMOpc3QudHh0?=',
    ),
    // Simple ASCII characters.
    array(
      'ASCII',
      'ASCII',
    ),
  );
}