blob: 71e0583840b98a38a8dcf1f63bcce6f7447e3ef3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
/**
* Based on LanguageMlTest
* @author Joel Sahleen
* @copyright Copyright © 2014, Joel Sahleen
* @file
*/
/** Tests for MediaWiki languages/LanguageArq.php */
class LanguageArqTest extends LanguageClassesTestCase {
/**
* @dataProvider provideNumber
* @covers Language::formatNum
*/
public function testFormatNum( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
}
public static function provideNumber() {
return array(
array( '1.234.567', '1234567' ),
array( '-12,89', -12.89 ),
);
}
}
|