function NumberTest::providerTestConversions
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/NumberTest.php \Drupal\Tests\Component\Utility\NumberTest::providerTestConversions()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/NumberTest.php \Drupal\Tests\Component\Utility\NumberTest::providerTestConversions()
- 10 core/tests/Drupal/Tests/Component/Utility/NumberTest.php \Drupal\Tests\Component\Utility\NumberTest::providerTestConversions()
Data provider for testConversions().
Return value
array An array containing:
- The integer value.
- The alphadecimal value.
See also
testConversions()
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ NumberTest.php, line 148
Class
- NumberTest
- Tests number manipulation utilities.
Namespace
Drupal\Tests\Component\UtilityCode
public static function providerTestConversions() {
return [
[
0,
'00',
],
[
1,
'01',
],
[
10,
'0a',
],
[
20,
'0k',
],
[
35,
'0z',
],
[
36,
'110',
],
[
100,
'12s',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.