3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
11 class LanguageMlTest
extends LanguageClassesTestCase
{
14 * @dataProvider providerFormatNum
16 * @covers Language::formatNum
18 public function testFormatNum( $result, $value ) {
19 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
22 public static function providerFormatNum() {
24 [ '12,34,567', '1234567' ],
25 [ '12,345', '12345' ],
29 [ '12,345.56', '12345.56' ],
30 [ '12,34,56,79,81,23,45,678', '12345679812345678' ],
31 [ '.12345', '.12345' ],
32 [ '-12,00,000', '-1200000' ],
35 [ '-1,23,45,678', -12345678 ],