Merge "cleanup action=tokens"
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageSkTest.php
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * based on LanguageSkTest.php
6 * @file
7 */
8
9 /** Tests for MediaWiki languages/classes/LanguageSk.php */
10 class LanguageSkTest extends LanguageClassesTestCase {
11
12 /** @dataProvider providerPlural */
13 function testPlural( $result, $value ) {
14 $forms = array( 'one', 'few', 'other' );
15 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
16 }
17
18 function providerPlural() {
19 return array(
20 array( 'other', 0 ),
21 array( 'one', 1 ),
22 array( 'few', 2 ),
23 array( 'few', 3 ),
24 array( 'few', 4 ),
25 array( 'other', 5 ),
26 array( 'other', 11 ),
27 array( 'other', 20 ),
28 array( 'other', 25 ),
29 array( 'other', 200 ),
30 );
31 }
32 }