wiki.techinc.nl/tests/phpunit/languages/classes/LanguageNlTest.php
Peter Ovchyn 6ee4f72d1d languages: Add @group Language to all tests related to Language for easier navigation through tests
Bug: T226833, T243761
Change-Id: Ied7d4a1db661f5cfaefe6c392348ff56b1a5616c
2020-02-03 15:29:59 +02:00

32 lines
701 B
PHP

<?php
/**
* @author Santhosh Thottingal
* @copyright Copyright © 2011, Santhosh Thottingal
* @file
*/
/** Tests for MediaWiki languages/LanguageNl.php
* @group Language
*/
class LanguageNlTest extends LanguageClassesTestCase {
/**
* @covers Language::formatNum
* @dataProvider provideFormatNum
*/
public function testFormatNum( $formatted, $unformatted ) {
$this->assertEquals( $formatted, $this->getLang()->formatNum( $unformatted ) );
}
public function provideFormatNum() {
return [
[ '1.234.567', '1234567' ],
[ '12.345', '12345' ],
[ '1', '1' ],
[ '123', '123' ],
[ '1.234', '1234' ],
[ '12.345,56', '12345.56' ],
[ ',1234556', '.1234556' ],
];
}
}