1<?php
2/**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
5 * @file
6 */
7
8/** Tests for MediaWiki languages/LanguageNl.php
9 * @group Language
10 */
11class LanguageNlTest extends LanguageClassesTestCase {
12
13	/**
14	 * @covers Language::formatNum
15	 * @dataProvider provideFormatNum
16	 */
17	public function testFormatNum( $formatted, $unformatted ) {
18		$this->assertEquals( $formatted, $this->getLang()->formatNum( $unformatted ) );
19	}
20
21	public function provideFormatNum() {
22		return [
23			[ '1.234.567', '1234567' ],
24			[ '12.345', '12345' ],
25			[ '1', '1' ],
26			[ '123', '123' ],
27			[ '1.234', '1234' ],
28			[ '12.345,56', '12345.56' ],
29			[ ',1234556', '.1234556' ],
30		];
31	}
32}
33