Skip to content

Commit 012162a

Browse files
committed
Fix test names
1 parent a175236 commit 012162a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tests/Unit/Extension/Propagator/XCloudTrace/UtilsTest.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class UtilsTest extends TestCase
1414
{
1515

1616
/**
17-
* @dataProvider for_test_leftZeroPad
17+
* @dataProvider for_test_left_zero_pad
1818
*/
19-
public function test_leftZeroPad(string $pad, int $howMuch, string $equalsTo) : void
19+
public function test_left_zero_pad(string $pad, int $howMuch, string $equalsTo) : void
2020
{
2121
$this->assertEquals(Utils::leftZeroPad($pad, $howMuch), $equalsTo, "Given leftZeroPad($pad, $howMuch) != $equalsTo");
2222
}
2323

24-
public function for_test_leftZeroPad() : array {
24+
public function for_test_left_zero_pad() : array {
2525
return [
2626
['a', 3, '00a'],
2727
['aaa', 3, 'aaa'],
@@ -31,14 +31,14 @@ public function for_test_leftZeroPad() : array {
3131
}
3232

3333
/**
34-
* @dataProvider for_test_decToHex
34+
* @dataProvider for_test_dec_to_hex
3535
*/
36-
public function test_decToHex(string $decNum, string $equalsTo) : void
36+
public function test_dec_to_hex(string $decNum, string $equalsTo) : void
3737
{
3838
$this->assertEquals(Utils::decToHex($decNum), $equalsTo, "Given decToHex($decNum) != $equalsTo");
3939
}
4040

41-
public function for_test_decToHex() : array {
41+
public function for_test_dec_to_hex() : array {
4242
return [
4343
['10', 'a'],
4444
['1', '1'],
@@ -49,14 +49,14 @@ public function for_test_decToHex() : array {
4949
}
5050

5151
/**
52-
* @dataProvider for_test_hexToDec
52+
* @dataProvider for_test_hex_to_dec
5353
*/
54-
public function test_hexToDec(string $hexNum, string $equalsTo) : void
54+
public function test_hex_to_dec(string $hexNum, string $equalsTo) : void
5555
{
5656
$this->assertEquals(Utils::hexToDec($hexNum), $equalsTo, "Given hexToDec($hexNum) != $equalsTo");
5757
}
5858

59-
public function for_test_hexToDec() : array {
59+
public function for_test_hex_to_dec() : array {
6060
return [
6161
['a', '10'],
6262
['B', '11'],
@@ -74,14 +74,14 @@ public function for_test_hexToDec() : array {
7474
}
7575

7676
/**
77-
* @dataProvider for_test_isBigNum
77+
* @dataProvider for_test_is_big_num
7878
*/
79-
public function test_isBigNum(int|float $num, bool $equalsTo) : void
79+
public function test_is_big_num(int|float $num, bool $equalsTo) : void
8080
{
8181
$this->assertEquals(Utils::isBigNum($num), $equalsTo, "Given isBigNum($num) != $equalsTo");
8282
}
8383

84-
public function for_test_isBigNum() : array {
84+
public function for_test_is_big_num() : array {
8585
return [
8686
[-100.5, false],
8787
[-1, false],
@@ -96,15 +96,15 @@ public function for_test_isBigNum() : array {
9696
}
9797

9898
/**
99-
* @dataProvider for_test_baseConvert
99+
* @dataProvider for_test_base_convert
100100
*/
101-
public function test_baseConvert(string $num, int $fromBase, int $toBase, string $equalsTo) : void
101+
public function test_base_convert(string $num, int $fromBase, int $toBase, string $equalsTo) : void
102102
{
103103
$result = Utils::baseConvert($num, $fromBase, $toBase);
104104
$this->assertEquals($result, $equalsTo, "Given baseConvert($num, $fromBase, $toBase) != $equalsTo (result=$result)");
105105
}
106106

107-
public function for_test_baseConvert() : array {
107+
public function for_test_base_convert() : array {
108108
return [
109109
['b', 16, 10, '11'],
110110
['c', 16, 10, '12'],

0 commit comments

Comments
 (0)