test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / languages / LanguageSlTest.php
blob84c2e01ec85d80c4580d65afa18d0c3102002b75
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/LanguageSl.php */
10 class LanguageSlTest extends LanguageClassesTestCase {
11 /** @dataProvider providerPlural */
12 function testPlural( $result, $value ) {
13 $forms = array( 'one', 'two', 'few', 'other' );
14 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
17 /** @dataProvider providerPlural */
18 function testGetPluralRuleType( $result, $value ) {
19 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
22 public static function providerPlural() {
23 return array(
24 array( 'other', 0 ),
25 array( 'one', 1 ),
26 array( 'two', 2 ),
27 array( 'few', 3 ),
28 array( 'few', 4 ),
29 array( 'other', 5 ),
30 array( 'other', 99 ),
31 array( 'other', 100 ),
32 array( 'one', 101 ),
33 array( 'two', 102 ),
34 array( 'few', 103 ),
35 array( 'one', 201 ),