wiki.techinc.nl/tests/phpunit/languages/classes/LanguageMlTest.php
Kunal Mehta fc23633035 Add @covers tags to languages tests
I removed comments that merely repeated the location of the class being
tested. There are other tests in this directory that don't have a
corresponding class and need further investigation.

Change-Id: Ic16f0887b5030ac53fab4382cfaedfb5426cdb08
2017-12-28 08:52:56 +00:00

40 lines
852 B
PHP

<?php
/**
* @author Santhosh Thottingal
* @copyright Copyright © 2011, Santhosh Thottingal
* @file
*/
/**
* @covers LanguageMl
*/
class LanguageMlTest extends LanguageClassesTestCase {
/**
* @dataProvider providerFormatNum
* T31495
* @covers Language::formatNum
*/
public function testFormatNum( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
}
public static function providerFormatNum() {
return [
[ '12,34,567', '1234567' ],
[ '12,345', '12345' ],
[ '1', '1' ],
[ '123', '123' ],
[ '1,234', '1234' ],
[ '12,345.56', '12345.56' ],
[ '12,34,56,79,81,23,45,678', '12345679812345678' ],
[ '.12345', '.12345' ],
[ '-12,00,000', '-1200000' ],
[ '-98', '-98' ],
[ '-98', -98 ],
[ '-1,23,45,678', -12345678 ],
[ '', '' ],
[ '', null ],
];
}
}