function UnicodeTest::testStrtolower

Tests multibyte strtolower.

@dataProvider providerStrtolower @covers ::strtolower @group legacy @expectedDeprecation \Drupal\Component\Utility\Unicode::strtolower() is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Use mb_strtolower() instead. See https://www.drupal.org/node/2850048.

File

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

Class

UnicodeTest
Test unicode handling features implemented in Unicode component.

Namespace

Drupal\Tests\Component\Utility

Code

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

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