Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function UnicodeUnitTest::helperTestStrToLower

2 calls to UnicodeUnitTest::helperTestStrToLower()
UnicodeUnitTest::testEmulatedUnicode in modules/simpletest/tests/unicode.test
Test emulated unicode features.
UnicodeUnitTest::testMbStringUnicode in modules/simpletest/tests/unicode.test
Test full unicode features implemented using the mbstring extension.

File

modules/simpletest/tests/unicode.test, line 73

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, format_string ('%input is lowercased as %output', array(
 '%input' => $input,
 '%output' => $output,
 )));
 }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.