test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / languages / LanguageTiTest.php
blob36446c42198a0001543a382b813df861c5d7b68e
1 <?php
2 /**
3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
5 * @file
6 */
8 /** Tests for MediaWiki languages/classes/LanguageTi.php */
9 class LanguageTiTest extends LanguageClassesTestCase {
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 $forms = array( '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( 'one', 0 ),
24 array( 'one', 1 ),
25 array( 'other', 2 ),