function UnicodeTest::providerUcfirst

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

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

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

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