test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / languages / LanguageLvTest.php
blob368ac8cf9356163b20a47fce75b6f8edbeb184d5
1 <?php
2 /**
3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
5 * @file
6 */
8 /** Tests for MediaWiki languages/classes/LanguageLv.php */
9 class LanguageLvTest extends LanguageClassesTestCase {
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 $forms = array( 'zero', 'one', '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( 'zero', 0 ),
24 array( 'one', 1 ),
25 array( 'other', 11 ),
26 array( 'one', 21 ),
27 array( 'other', 411 ),
28 array( 'other', 12.345 ),
29 array( 'other', 20 ),
30 array( 'one', 31 ),
31 array( 'other', 200 ),