MediaWiki  REL1_21
LanguageSlTest.php
Go to the documentation of this file.
00001 <?php
00010 class LanguageSlTest extends LanguageClassesTestCase {
00011 
00013         function testPlural( $result, $value ) {
00014                 $forms = array( 'one', 'two', 'few', 'other', 'zero' );
00015                 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
00016         }
00017 
00018         function providerPlural() {
00019                 return array(
00020                         array( 'zero', 0 ),
00021                         array( 'one', 1 ),
00022                         array( 'two', 2 ),
00023                         array( 'few', 3 ),
00024                         array( 'few', 4 ),
00025                         array( 'other', 5 ),
00026                         array( 'other', 99 ),
00027                         array( 'other', 100 ),
00028                         array( 'one', 101 ),
00029                         array( 'two', 102 ),
00030                         array( 'few', 103 ),
00031                         array( 'one', 201 ),
00032                 );
00033         }
00034 }