function UnicodeUnitTest::helperTestStrToLower in SimpleTest 7
2 calls to UnicodeUnitTest::helperTestStrToLower()
- UnicodeUnitTest::testEmulatedUnicode in tests/
unicode.test - Test emulated unicode features.
- UnicodeUnitTest::testMbStringUnicode in tests/
unicode.test - Test full unicode features implemented using the mbstring extension.
File
- tests/
unicode.test, line 71 - Various unicode handling tests.
Class
- UnicodeUnitTest
- Test unicode handling features implemented in unicode.inc.
Code
function helperTestStrToLower() {
$testcase = array(
'tHe QUIcK bRoWn' => 'the quick brown',
'FrançAIS is ÜBER-åwesome' => 'français is über-åwesome',
);
if ($this->extendedMode) {
$testcase['ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ'] = 'αβγδεζηθικλμνξοσὠ';
}
foreach ($testcase as $input => $output) {
$this
->assertEqual(drupal_strtolower($input), $output, t('%input is lowercased as %output', array(
'%input' => $input,
'%output' => $output,
)));
}
}