function UnicodeTest::providerLcfirst

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerLcfirst()
  2. 8.9.x core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::providerLcfirst()
  3. 11.x 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 70

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public static 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
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.