1 unicode.test UnicodeUnitTest::helperTestStrToLower()

File

core/modules/simpletest/tests/unicode.test, line 64
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',
    // cspell:disable-next-line
    'FrançAIS is ÜBER-åwesome' => 'français is über-åwesome',
  );
  if ($this->extendedMode) {
    // cspell:disable-next-line
    $testcase['ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ'] = 'αβγδεζηθικλμνξοσὠ';
  }

  foreach ($testcase as $input => $output) {
    $this->assertEqual(backdrop_strtolower($input), $output, format_string('%input is lowercased as %output', array('%input' => $input, '%output' => $output)));
  }
}