test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / languages / LanguageMlTest.php
blob057ca6722a6c2894ada47ff7b233832d421a8001
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/LanguageMl.php */
9 class LanguageMlTest extends LanguageClassesTestCase {
11 /** see bug 29495 */
12 /** @dataProvider providerFormatNum */
13 function testFormatNum( $result, $value ) {
14 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
17 public static function providerFormatNum() {
18 return array(
19 array( '12,34,567', '1234567' ),
20 array( '12,345', '12345' ),
21 array( '1', '1' ),
22 array( '123', '123' ),
23 array( '1,234', '1234' ),
24 array( '12,345.56', '12345.56' ),
25 array( '12,34,56,79,81,23,45,678', '12345679812345678' ),
26 array( '.12345', '.12345' ),
27 array( '-12,00,000', '-1200000' ),
28 array( '-98', '-98' ),
29 array( '-98', -98 ),
30 array( '-1,23,45,678', -12345678 ),
31 array( '', '' ),
32 array( '', null ),