@@ -14,14 +14,14 @@ class UtilsTest extends TestCase
14
14
{
15
15
16
16
/**
17
- * @dataProvider for_test_leftZeroPad
17
+ * @dataProvider for_test_left_zero_pad
18
18
*/
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
20
20
{
21
21
$ this ->assertEquals (Utils::leftZeroPad ($ pad , $ howMuch ), $ equalsTo , "Given leftZeroPad( $ pad, $ howMuch) != $ equalsTo " );
22
22
}
23
23
24
- public function for_test_leftZeroPad () : array {
24
+ public function for_test_left_zero_pad () : array {
25
25
return [
26
26
['a ' , 3 , '00a ' ],
27
27
['aaa ' , 3 , 'aaa ' ],
@@ -31,14 +31,14 @@ public function for_test_leftZeroPad() : array {
31
31
}
32
32
33
33
/**
34
- * @dataProvider for_test_decToHex
34
+ * @dataProvider for_test_dec_to_hex
35
35
*/
36
- public function test_decToHex (string $ decNum , string $ equalsTo ) : void
36
+ public function test_dec_to_hex (string $ decNum , string $ equalsTo ) : void
37
37
{
38
38
$ this ->assertEquals (Utils::decToHex ($ decNum ), $ equalsTo , "Given decToHex( $ decNum) != $ equalsTo " );
39
39
}
40
40
41
- public function for_test_decToHex () : array {
41
+ public function for_test_dec_to_hex () : array {
42
42
return [
43
43
['10 ' , 'a ' ],
44
44
['1 ' , '1 ' ],
@@ -49,14 +49,14 @@ public function for_test_decToHex() : array {
49
49
}
50
50
51
51
/**
52
- * @dataProvider for_test_hexToDec
52
+ * @dataProvider for_test_hex_to_dec
53
53
*/
54
- public function test_hexToDec (string $ hexNum , string $ equalsTo ) : void
54
+ public function test_hex_to_dec (string $ hexNum , string $ equalsTo ) : void
55
55
{
56
56
$ this ->assertEquals (Utils::hexToDec ($ hexNum ), $ equalsTo , "Given hexToDec( $ hexNum) != $ equalsTo " );
57
57
}
58
58
59
- public function for_test_hexToDec () : array {
59
+ public function for_test_hex_to_dec () : array {
60
60
return [
61
61
['a ' , '10 ' ],
62
62
['B ' , '11 ' ],
@@ -74,14 +74,14 @@ public function for_test_hexToDec() : array {
74
74
}
75
75
76
76
/**
77
- * @dataProvider for_test_isBigNum
77
+ * @dataProvider for_test_is_big_num
78
78
*/
79
- public function test_isBigNum (int |float $ num , bool $ equalsTo ) : void
79
+ public function test_is_big_num (int |float $ num , bool $ equalsTo ) : void
80
80
{
81
81
$ this ->assertEquals (Utils::isBigNum ($ num ), $ equalsTo , "Given isBigNum( $ num) != $ equalsTo " );
82
82
}
83
83
84
- public function for_test_isBigNum () : array {
84
+ public function for_test_is_big_num () : array {
85
85
return [
86
86
[-100.5 , false ],
87
87
[-1 , false ],
@@ -96,15 +96,15 @@ public function for_test_isBigNum() : array {
96
96
}
97
97
98
98
/**
99
- * @dataProvider for_test_baseConvert
99
+ * @dataProvider for_test_base_convert
100
100
*/
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
102
102
{
103
103
$ result = Utils::baseConvert ($ num , $ fromBase , $ toBase );
104
104
$ this ->assertEquals ($ result , $ equalsTo , "Given baseConvert( $ num, $ fromBase, $ toBase) != $ equalsTo (result= $ result) " );
105
105
}
106
106
107
- public function for_test_baseConvert () : array {
107
+ public function for_test_base_convert () : array {
108
108
return [
109
109
['b ' , 16 , 10 , '11 ' ],
110
110
['c ' , 16 , 10 , '12 ' ],
0 commit comments