MediaWiki
REL1_21
|
00001 <?php 00009 class LanguageSeTest extends LanguageClassesTestCase { 00010 00012 function testPluralThreeForms( $result, $value ) { 00013 $forms = array( 'one', 'two', 'other' ); 00014 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); 00015 } 00016 00017 function providerPluralThreeForms() { 00018 return array( 00019 array( 'other', 0 ), 00020 array( 'one', 1 ), 00021 array( 'two', 2 ), 00022 array( 'other', 3 ), 00023 ); 00024 } 00025 00027 function testPlural( $result, $value ) { 00028 $forms = array( 'one', 'other' ); 00029 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); 00030 } 00031 00032 function providerPlural() { 00033 return array( 00034 array( 'other', 0 ), 00035 array( 'one', 1 ), 00036 array( 'other', 2 ), 00037 array( 'other', 3 ), 00038 ); 00039 } 00040 }