3 * @author Santhosh Thottingal
4 * @copyright Copyright © 2012, Santhosh Thottingal
8 /** Tests for MediaWiki languages/LanguageHy.php */
9 class LanguageHyTest
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 fails for 0, but I'm not sure why. Some voodoo going on here.
19 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
22 public static function providePlural() {
27 array( 'other', 200 ),