MediaWiki  REL1_21
LanguageCyTest.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageCyTest extends LanguageClassesTestCase {
00010 
00012         function testPlural( $result, $value ) {
00013                 $forms = array( 'zero', 'one', 'two', 'few', 'many', 'other' );
00014                 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
00015         }
00016 
00017         function providerPlural() {
00018                 return array(
00019                         array( 'zero', 0 ),
00020                         array( 'one', 1 ),
00021                         array( 'two', 2 ),
00022                         array( 'few', 3 ),
00023                         array( 'many', 6 ),
00024                         array( 'other', 4 ),
00025                         array( 'other', 5 ),
00026                         array( 'other', 11 ),
00027                         array( 'other', 20 ),
00028                         array( 'other', 22 ),
00029                         array( 'other', 223 ),
00030                         array( 'other', 200.00 ),
00031                 );
00032         }
00033 
00034 }