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 * @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 public static function providerPlural() {
28 array( 'other', 200 ),
33 * @dataProvider providerPluralExplicit
34 * @covers Language::convertPlural
36 public function testExplicitPlural( $result, $value ) {
37 $forms = array( 'one', 'two', 'few', 'other', '11=Form11', '12=Form12' );
38 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
41 public static function providerPluralExplicit() {
46 array( 'Form11', 11 ),
47 array( 'Form12', 12 ),
50 array( 'other', 200 ),