1 unicode.test UnicodeUnitTest::helperTestStrLen()

File

core/modules/simpletest/tests/unicode.test, line 115
Various unicode handling tests.

Class

UnicodeUnitTest
Test unicode handling features implemented in unicode.inc.

Code

function helperTestStrLen() {
  $testcase = array(
    'tHe QUIcK bRoWn' => 15,
    // cspell:disable-next-line
    'ÜBER-åwesome' => 12,
  );

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