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