test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / languages / LanguageCuTest.php
blob562d6d928aed2a169f224dde67d4492f0f3ab786
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/LanguageCu.php */
9 class LanguageCuTest extends LanguageClassesTestCase {
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 $forms = array( 'one', 'two', 'few', 'other' );
13 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
16 /** @dataProvider providePlural */
17 function testGetPluralRuleType( $result, $value ) {
18 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
21 public static function providePlural() {
22 return array(
23 array( 'other', 0 ),
24 array( 'one', 1 ),
25 array( 'two', 2 ),
26 array( 'few', 3 ),
27 array( 'few', 4 ),
28 array( 'other', 5 ),
29 array( 'one', 11 ),
30 array( 'other', 20 ),
31 array( 'two', 22 ),
32 array( 'few', 223 ),
33 array( 'other', 200 ),