3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012-2013, Santhosh Thottingal
8 /** Tests for MediaWiki languages/classes/LanguageGd.php */
9 class LanguageGdTest
extends LanguageClassesTestCase
{
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 $forms = array( 'one', 'two', 'few', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
17 function providerPlural() {
26 array( 'other', 200 ),
30 /** @dataProvider providerPluralExplicit */
31 function testExplicitPlural( $result, $value ) {
32 $forms = array( 'one', 'two', 'few', 'other', '11=Form11', '12=Form12' );
33 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
36 function providerPluralExplicit() {
41 array( 'Form11', 11 ),
42 array( 'Form12', 12 ),
45 array( 'other', 200 ),