1 unicode.test | UnicodeUnitTest::helperTestUcFirst() |
File
- core/
modules/ simpletest/ tests/ unicode.test, line 96 - Various unicode handling tests.
Class
- UnicodeUnitTest
- Test unicode handling features implemented in unicode.inc.
Code
function helperTestUcFirst() {
$testcase = array(
// cspell:disable
'tHe QUIcK bRoWn' => 'THe QUIcK bRoWn',
'françAIS' => 'FrançAIS',
'über' => 'Über',
'åwesome' => 'Åwesome'
// cspell:enable
);
if ($this->extendedMode) {
// cspell:disable-next-line
$testcase['σion'] = 'Σion';
}
foreach ($testcase as $input => $output) {
$this->assertEqual(backdrop_ucfirst($input), $output, format_string('%input is ucfirst-ed as %output', array('%input' => $input, '%output' => $output)));
}
}