function UnicodeTest::providerLcfirst

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

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