Stop doing $that = $this in Tests
[mediawiki.git] / tests / phpunit / languages / classes / LanguageHsbTest.php
blobf95a43bf6de4a104e9e6bc39ff20b914ae8c258d
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/classes/LanguageHsb.php */
9 class LanguageHsbTest extends LanguageClassesTestCase {
10 /**
11 * @dataProvider providePlural
12 * @covers Language::convertPlural
14 public function testPlural( $result, $value ) {
15 $forms = array( 'one', 'two', 'few', 'other' );
16 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
19 /**
20 * @dataProvider providePlural
21 * @covers Language::getPluralRuleType
23 public function testGetPluralRuleType( $result, $value ) {
24 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
27 public static function providePlural() {
28 return array(
29 array( 'other', 0 ),
30 array( 'one', 1 ),
31 array( 'one', 101 ),
32 array( 'one', 90001 ),
33 array( 'two', 2 ),
34 array( 'few', 3 ),
35 array( 'few', 203 ),
36 array( 'few', 4 ),
37 array( 'other', 99 ),
38 array( 'other', 555 ),