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