You are here

public function UnicodeTest::providerLcfirst 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::providerLcfirst()

Data provider for testLcfirst().

Return value

array An array containing a string, its lowercase version and whether it should be processed as multibyte.

See also

testLcfirst()

File

core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php, line 222
Contains \Drupal\Tests\Component\Utility\UnicodeTest.

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerLcfirst() {
  return array(
    array(
      'tHe QUIcK bRoWn',
      'tHe QUIcK bRoWn',
    ),
    array(
      'FrançAIS is ÜBER-åwesome',
      'françAIS is ÜBER-åwesome',
    ),
    array(
      'Über',
      'über',
    ),
    array(
      'Åwesome',
      'åwesome',
    ),
    // Add a multibyte string.
    array(
      'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
      'αΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
      TRUE,
    ),
  );
}