blob: 3fa56d7819aede7de7383c0113a3793f7177c223 (
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 ),
);
}
}
|