MediaWiki  REL1_21
LanguageHsbTest.php
Go to the documentation of this file.
00001 <?php
00009 class LanguageHsbTest extends LanguageClassesTestCase {
00010 
00012         function testPlural( $result, $value ) {
00013                 $forms = array( 'one', 'two', 'few', 'other' );
00014                 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
00015         }
00016 
00017         function providePlural() {
00018                 return array(
00019                         array( 'other', 0 ),
00020                         array( 'one', 1 ),
00021                         array( 'one', 101 ),
00022                         array( 'one', 90001 ),
00023                         array( 'two', 2 ),
00024                         array( 'few', 3 ),
00025                         array( 'few', 203 ),
00026                         array( 'few', 4 ),
00027                         array( 'other', 99 ),
00028                         array( 'other', 555 ),
00029                 );
00030         }
00031 
00032 }