You are here

public function UnicodeTest::providerLcfirst in Drupal 10

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

Data provider for testLcfirst().

Return value

array An array containing a string and its lowercase version.

See also

testLcfirst()

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 68

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerLcfirst() {

  // cSpell:disable
  return [
    [
      'tHe QUIcK bRoWn',
      'tHe QUIcK bRoWn',
    ],
    [
      'FrançAIS is ÜBER-åwesome',
      'françAIS is ÜBER-åwesome',
    ],
    [
      'Über',
      'über',
    ],
    [
      'Åwesome',
      'åwesome',
    ],
    // Add a multibyte string.
    [
      'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
      'αΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
    ],
  ];

  // cSpell:enable
}