MediaWiki
REL1_21
|
00001 <?php 00009 class LanguageRoTest extends LanguageClassesTestCase { 00010 00012 function testPlural( $result, $value ) { 00013 $forms = array( 'one', 'few', 'other' ); 00014 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); 00015 } 00016 00017 function providerPlural() { 00018 return array( 00019 array( 'few', 0 ), 00020 array( 'one', 1 ), 00021 array( 'few', 2 ), 00022 array( 'few', 19 ), 00023 array( 'other', 20 ), 00024 array( 'other', 99 ), 00025 array( 'other', 100 ), 00026 array( 'few', 101 ), 00027 array( 'few', 119 ), 00028 array( 'other', 120 ), 00029 array( 'other', 200 ), 00030 array( 'few', 201 ), 00031 array( 'few', 219 ), 00032 array( 'other', 220 ), 00033 ); 00034 } 00035 }