1335e9081d5f1ef81404d1d628be94167b75748f
3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
8 /** Tests for MediaWiki languages/classes/LanguageHe.php */
9 class LanguageHeTest
extends LanguageClassesTestCase
{
10 /** @dataProvider providePlural */
11 function testPlural( $result, $value ) {
12 $forms = array( 'one', 'two', '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 function providePlural() {
31 /** @dataProvider provideGrammar */
32 function testGrammar( $result, $word, $case ) {
33 $this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
36 // The comments in the beginning of the line help avoid RTL problems
38 function provideGrammar() {
41 /* result */ 'וויקיפדיה',
42 /* word */ 'ויקיפדיה',
46 /* result */ 'וולפגנג',
48 /* case */ 'prefixed',
56 /* result */ '־Wikipedia',
57 /* word */ 'Wikipedia',