You are here

public function UnicodeTest::providerStrlen in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\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 290
Contains \Drupal\Tests\Component\Utility\UnicodeTest.

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

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