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