public function UnicodeTest::testUcfirst in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testUcfirst()
- 9 core/tests/Drupal/Tests/Component/Utility/UnicodeTest.php \Drupal\Tests\Component\Utility\UnicodeTest::testUcfirst()
Tests multibyte ucfirst.
@dataProvider providerUcfirst @covers ::ucfirst
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ UnicodeTest.php, line 25
Class
- UnicodeTest
- Test unicode handling features implemented in Unicode component.
Namespace
Drupal\Tests\Component\UtilityCode
public function testUcfirst($text, $expected) {
$this
->assertEquals($expected, Unicode::ucfirst($text));
}