3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/LanguageLt.php */
9 class LanguageLtTest
extends LanguageClassesTestCase
{
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 $forms = array( 'one', 'few', 'other' );
13 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
16 /** @dataProvider providePlural */
17 function testGetPluralRuleType( $result, $value ) {
18 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
21 public static function providePlural() {
33 array( 'one', 40001 ),
37 /** @dataProvider providePluralTwoForms */
38 function testOneFewPlural( $result, $value ) {
39 $forms = array( 'one', 'other' );
40 // This fails for 21, but not sure why.
41 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
44 public static function providePluralTwoForms() {