MediaWiki  REL1_21
LanguageLvTest.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageLvTest extends LanguageClassesTestCase {
00010 
00012         function testPlural( $result, $value ) {
00013                 $forms = array( 'zero', 'one', '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( 'other', 11 ),
00022                         array( 'one', 21 ),
00023                         array( 'other', 411 ),
00024                         array( 'other', 12.345 ),
00025                         array( 'other', 20 ),
00026                         array( 'one', 31 ),
00027                         array( 'other', 200 ),
00028                 );
00029         }
00030 
00031 }