MediaWiki  master
LanguageGdTest.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageGdTest extends LanguageClassesTestCase {
00010 
00012         function testPlural( $result, $value ) {
00013                 // The CLDR ticket for this plural forms is not same as mw plural forms. See http://unicode.org/cldr/trac/ticket/2883
00014                 $forms =  array( 'Form 1', 'Form 2', 'Form 3', 'Form 4', 'Form 5', 'Form 6' );
00015                 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
00016         }
00017         function providerPlural() {
00018                 return array (
00019                         array( 'Form 6', 0 ),
00020                         array( 'Form 1', 1 ),
00021                         array( 'Form 2', 2 ),
00022                         array( 'Form 3', 11 ),
00023                         array( 'Form 4', 12 ),
00024                         array( 'Form 5', 3 ),
00025                         array( 'Form 5', 19 ),
00026                         array( 'Form 6', 200 ),
00027                 );
00028         }
00029 
00030 }