wiki.techinc.nl/tests/phpunit/languages/LanguageNlTest.php
addshore 46a17d0fc3 Cleanup /languages/* tests
This change:
 - Adds method scope
 - adds @covers tags
 - adds various @todos
 - fixes some comments

Before the changes tests ran with:
   1383 tests, 1412 assertions 10 skips
After changes the results remain the same

Change-Id: Iee57447bdb47026952ef5dcce6fed5dad0f80e52
2013-10-22 12:32:29 +02:00

24 lines
870 B
PHP

<?php
/**
* @author Santhosh Thottingal
* @copyright Copyright © 2011, Santhosh Thottingal
* @file
*/
/** Tests for MediaWiki languages/LanguageNl.php */
class LanguageNlTest extends LanguageClassesTestCase {
/**
* @covers Language::formatNum
* @todo split into a test and a dataprovider
*/
public function testFormatNum() {
$this->assertEquals( '1.234.567', $this->getLang()->formatNum( '1234567' ) );
$this->assertEquals( '12.345', $this->getLang()->formatNum( '12345' ) );
$this->assertEquals( '1', $this->getLang()->formatNum( '1' ) );
$this->assertEquals( '123', $this->getLang()->formatNum( '123' ) );
$this->assertEquals( '1.234', $this->getLang()->formatNum( '1234' ) );
$this->assertEquals( '12.345,56', $this->getLang()->formatNum( '12345.56' ) );
$this->assertEquals( ',1234556', $this->getLang()->formatNum( '.1234556' ) );
}
}