You are here

public function UnicodeTest::providerLcfirst in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerLcfirst()
  2. 10 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 194

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerLcfirst() {
  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.
    [
      'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
      'αΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
    ],
  ];
}