function UnicodeTest::providerTestMimeHeader
Same name in other branches
- 9 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 43
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestMimeHeader() {
return [
"Base64 encoding" => [
'tést.txt',
'=?UTF-8?B?dMOpc3QudHh0?=',
],
"ASCII characters only" => [
'test.txt',
'test.txt',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.