MediaWiki  REL1_22
LanguageSkTest.php
Go to the documentation of this file.
00001 <?php
00010 class LanguageSkTest extends LanguageClassesTestCase {
00015     public function testPlural( $result, $value ) {
00016         $forms = array( 'one', 'few', 'other' );
00017         $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
00018     }
00019 
00024     public function testGetPluralRuleType( $result, $value ) {
00025         $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
00026     }
00027 
00028     public static function providePlural() {
00029         return array(
00030             array( 'other', 0 ),
00031             array( 'one', 1 ),
00032             array( 'few', 2 ),
00033             array( 'few', 3 ),
00034             array( 'few', 4 ),
00035             array( 'other', 5 ),
00036             array( 'other', 11 ),
00037             array( 'other', 20 ),
00038             array( 'other', 25 ),
00039             array( 'other', 200 ),
00040         );
00041     }
00042 }