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