@@ 23-30 (lines=8) @@ | ||
20 | $this->assertTrue($result); |
|
21 | } |
|
22 | ||
23 | public function testGetDecimalSeparator() |
|
24 | { |
|
25 | $localeconv = localeconv(); |
|
26 | ||
27 | $expectedResult = (!empty($localeconv['decimal_point'])) ? $localeconv['decimal_point'] : ','; |
|
28 | $result = StringHelper::getDecimalSeparator(); |
|
29 | $this->assertEquals($expectedResult, $result); |
|
30 | } |
|
31 | ||
32 | public function testSetDecimalSeparator() |
|
33 | { |
|
@@ 41-48 (lines=8) @@ | ||
38 | $this->assertEquals($expectedResult, $result); |
|
39 | } |
|
40 | ||
41 | public function testGetThousandsSeparator() |
|
42 | { |
|
43 | $localeconv = localeconv(); |
|
44 | ||
45 | $expectedResult = (!empty($localeconv['thousands_sep'])) ? $localeconv['thousands_sep'] : ','; |
|
46 | $result = StringHelper::getThousandsSeparator(); |
|
47 | $this->assertEquals($expectedResult, $result); |
|
48 | } |
|
49 | ||
50 | public function testSetThousandsSeparator() |
|
51 | { |