You are here

function UnicodeUnitTest::helperTestUcFirst in SimpleTest 7

2 calls to UnicodeUnitTest::helperTestUcFirst()
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 99
Various unicode handling tests.

Class

UnicodeUnitTest
Test unicode handling features implemented in unicode.inc.

Code

function helperTestUcFirst() {
  $testcase = array(
    'tHe QUIcK bRoWn' => 'THe QUIcK bRoWn',
    'françAIS' => 'FrançAIS',
    'über' => 'Über',
    'åwesome' => 'Åwesome',
  );
  if ($this->extendedMode) {
    $testcase['σion'] = 'Σion';
  }
  foreach ($testcase as $input => $output) {
    $this
      ->assertEqual(drupal_ucfirst($input), $output, t('%input is ucfirst-ed as %output', array(
      '%input' => $input,
      '%output' => $output,
    )));
  }
}