function UnicodeTest::testMimeHeaderEncode

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testMimeHeaderEncode()

Tests multibyte encoding.

@dataProvider providerTestMimeHeader @covers ::mimeHeaderEncode

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 31

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function testMimeHeaderEncode($value, $encoded) {
    $this->assertEquals($encoded, Unicode::mimeHeaderEncode($value));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.