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