wiki.techinc.nl/tests/phpunit/languages/classes/LanguageArqTest.php
C. Scott Ananian 5553106baf Use Unicode minus in output of {{formatnum}}
Bug: T10327
Change-Id: I4b315d439fef7d7cdf2fc5ae1904e0460a2a60e0
2020-11-16 18:08:31 +00:00

27 lines
595 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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( $value, $result ) {
$this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
}
public static function provideNumber() {
return [
[ '1234567', '1.234.567' ],
[ '1234567.568', '1.234.567,568' ],
[ '-12.89', '12,89' ]
];
}
}