public function UnicodeTest::testMimeHeaderDecode in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testMimeHeaderDecode()
Tests multibyte decoding.
@dataProvider providerTestMimeHeaderDecode @covers ::mimeHeaderDecode @group legacy
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 53
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function testMimeHeaderDecode($value, $encoded) {
$this
->expectDeprecation('\\Drupal\\Component\\Utility\\Unicode::mimeHeaderDecode() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use iconv_mime_decode() instead. See https://www.drupal.org/node/3207439');
$this
->assertEquals($value, Unicode::mimeHeaderDecode($encoded));
}