You are here

public function UnicodeTest::providerStrlen in Drupal 8

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,
    ],
  ];
}