LanguageArqTest.php 554 B

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