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