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