public function UnicodeTest::providerStrtoupper 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::providerStrtoupper()
Data provider for testStrtoupper().
Return value
array An array containing a string, its uppercase version and whether it should be processed as multibyte.
See also
testStrtoupper()
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 157 - Contains \Drupal\Tests\Component\Utility\UnicodeTest.
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function providerStrtoupper() {
$cases = array(
array(
'tHe QUIcK bRoWn',
'THE QUICK BROWN',
),
array(
'FrançAIS is ÜBER-åwesome',
'FRANÇAIS IS ÜBER-ÅWESOME',
),
);
foreach ($cases as $case) {
// Test the same string both in multibyte and singlebyte conditions.
array_push($case, TRUE);
$cases[] = $case;
}
// Add a multibyte string.
$cases[] = array(
'αβγδεζηθικλμνξοσὠ',
'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
TRUE,
);
return $cases;
}