function UnicodeTest::testMimeHeaderEncode
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testMimeHeaderEncode()
Tests multibyte encoding.
@dataProvider providerTestMimeHeader @covers ::mimeHeaderEncode @group legacy
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 26
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function testMimeHeaderEncode($value, $encoded) {
$this->expectDeprecation('\\Drupal\\Component\\Utility\\Unicode::mimeHeaderEncode() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use \\Symfony\\Component\\Mime\\Header\\UnstructuredHeader instead. See https://www.drupal.org/node/3207439');
$this->assertEquals($encoded, Unicode::mimeHeaderEncode($value));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.