wiki.techinc.nl/tests/phpunit/includes/languages/LanguageArqTest.php
Timo Tijhof 7c39f76452 Move Language subclasses to includes/
Depending on which namespace we want these classes to have after
T166010 they could either stay in includes/languages/ (plural) in
their own MediaWiki\Languages\-namespace dedicated to Language
subclasses, or they could go in into a subdirectory like
`includes/language/languages/` if we want to keep them in the same
top-level namespace as other Language classes and services, but in
a more nested namespace.

For now, I've made the smaller change and kept the Language subclasses
in their own directory directly under includes/, not nested further.

Bug: T225756
Change-Id: I01015424707b442853879fd50c97f00215e5c2fa
2021-08-04 23:44:46 +01:00

28 lines
542 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
/**
* @author Joel Sahleen
* @copyright Copyright © 2014, Joel Sahleen
* @file
*/
/**
* @group Language
*/
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' ]
];
}
}