function UnicodeTest::testLcfirst

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testLcfirst()
  2. 8.9.x core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testLcfirst()
  3. 11.x core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testLcfirst()

Tests multibyte lcfirst.

@dataProvider providerLcfirst @covers ::lcfirst

File

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

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function testLcfirst($text, $expected) : void {
    $this->assertEquals($expected, Unicode::lcfirst($text));
}

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