public function UnicodeTest::providerTestConvertToUtf8 in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerTestConvertToUtf8()
Provides data to self::testConvertToUtf8().
Return value
array An array of arrays, each containing the parameters to self::testConvertUtf8(). }
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 525 - Contains \Drupal\Tests\Component\Utility\UnicodeTest.
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function providerTestConvertToUtf8() {
return array(
array(
chr(0x97),
'Windows-1252',
'—',
),
array(
chr(0x99),
'Windows-1252',
'™',
),
array(
chr(0x80),
'Windows-1252',
'€',
),
);
}