You are here

public function UnicodeTest::providerUcfirst in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerUcfirst()

Data provider for testUcfirst().

Return value

array An array containing a string and its uppercase first version.

See also

testUcfirst()

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 190
Contains \Drupal\Tests\Component\Utility\UnicodeTest.

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerUcfirst() {
  return array(
    array(
      'tHe QUIcK bRoWn',
      'THe QUIcK bRoWn',
    ),
    array(
      'françAIS',
      'FrançAIS',
    ),
    array(
      'über',
      'Über',
    ),
    array(
      'åwesome',
      'Åwesome',
    ),
    // A multibyte string.
    array(
      'σion',
      'Σion',
    ),
  );
}