function UnicodeTest::providerStrlen

Data provider for testStrlen().

Return value

array An array containing a string and its length.

See also

testStrlen()

File

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

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerStrlen() {
    return [
        [
            'tHe QUIcK bRoWn',
            15,
        ],
        [
            'ÜBER-åwesome',
            12,
        ],
        [
            '以呂波耳・ほへとち。リヌルヲ。',
            15,
        ],
    ];
}

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