3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/classes/LanguageGd.php */
9 class LanguageGdTest
extends LanguageClassesTestCase
{
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 // The CLDR ticket for this plural forms is not same as mw plural forms. See http://unicode.org/cldr/trac/ticket/2883
14 $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4', 'Form 5', 'Form 6' );
15 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
18 function providerPlural() {
23 array( 'Form 3', 11 ),
24 array( 'Form 4', 12 ),
26 array( 'Form 5', 19 ),
27 array( 'Form 6', 200 ),