public function UnicodeTest::providerUcwords in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerUcwords()
Data provider for testUcwords().
Return value
array An array containing a string, its capitalized version and whether it should be processed as multibyte.
See also
testUcwords()
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 254 - Contains \Drupal\Tests\Component\Utility\UnicodeTest.
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function providerUcwords() {
return array(
array(
'tHe QUIcK bRoWn',
'THe QUIcK BRoWn',
),
array(
'françAIS',
'FrançAIS',
),
array(
'über',
'Über',
),
array(
'åwesome',
'Åwesome',
),
// Make sure we don't mangle extra spaces.
array(
'frànçAIS is über-åwesome',
'FrànçAIS Is Über-Åwesome',
),
// Add a multibyte string.
array(
'σion',
'Σion',
TRUE,
),
);
}