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