You are here

public function UnicodeTest::testUcwords in Drupal 9

Same name and namespace in other branches
  1. 8 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 157

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

public function testUcwords($text, $expected) {
  $this
    ->assertEquals($expected, Unicode::ucwords($text));
}