Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / tests / phpunit / languages / classes / LanguageNlTest.php
blob26bd691aee186615885168b93eb0d48a484c8651
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2011, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/LanguageNl.php */
9 class LanguageNlTest extends LanguageClassesTestCase {
11 /**
12 * @covers Language::formatNum
13 * @todo split into a test and a dataprovider
15 public function testFormatNum() {
16 $this->assertEquals( '1.234.567', $this->getLang()->formatNum( '1234567' ) );
17 $this->assertEquals( '12.345', $this->getLang()->formatNum( '12345' ) );
18 $this->assertEquals( '1', $this->getLang()->formatNum( '1' ) );
19 $this->assertEquals( '123', $this->getLang()->formatNum( '123' ) );
20 $this->assertEquals( '1.234', $this->getLang()->formatNum( '1234' ) );
21 $this->assertEquals( '12.345,56', $this->getLang()->formatNum( '12345.56' ) );
22 $this->assertEquals( ',1234556', $this->getLang()->formatNum( '.1234556' ) );