@@ -38,6 +38,11 @@ public function testRomanNumber(): void
38
38
$ this ->assertSame ('X ' , number_to_roman (10 ));
39
39
}
40
40
41
+ public function testRomanNumberString (): void
42
+ {
43
+ $ this ->assertSame ('XCVI ' , number_to_roman ('96 ' ));
44
+ }
45
+
41
46
public function testRomanNumberRange (): void
42
47
{
43
48
$ this ->assertNull (number_to_roman (-1 ));
@@ -70,6 +75,11 @@ public function testNumberToSize(): void
70
75
$ this ->assertSame ('456 Bytes ' , number_to_size (456 , 1 , 'en_US ' ));
71
76
}
72
77
78
+ public function testNumberToSizeString (): void
79
+ {
80
+ $ this ->assertSame ('456 Bytes ' , number_to_size ('456 ' , 1 , 'en_US ' ));
81
+ }
82
+
73
83
public function testKbFormat (): void
74
84
{
75
85
$ this ->assertSame ('4.5 KB ' , number_to_size (4567 , 1 , 'en_US ' ));
@@ -109,6 +119,11 @@ public function testThousands(): void
109
119
$ this ->assertSame ('1,000 thousand ' , number_to_amount ('999999 ' , 0 , 'en_US ' ));
110
120
}
111
121
122
+ public function testThousandsInt (): void
123
+ {
124
+ $ this ->assertSame ('123 thousand ' , number_to_amount (123000 , 0 , 'en_US ' ));
125
+ }
126
+
112
127
public function testMillions (): void
113
128
{
114
129
$ this ->assertSame ('123.4 million ' , number_to_amount ('123,400,000 ' , 1 , 'en_US ' ));
0 commit comments