1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * @author Santhosh Thottingal
- * @copyright Copyright © 2012, Santhosh Thottingal
- * @file
- */
- /**
- * @covers LanguageHu
- */
- class LanguageHuTest extends LanguageClassesTestCase {
- /**
- * @dataProvider providePlural
- * @covers Language::convertPlural
- */
- public function testPlural( $result, $value ) {
- $forms = [ 'one', 'other' ];
- $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
- }
- /**
- * @dataProvider providePlural
- * @covers Language::getPluralRuleType
- */
- public function testGetPluralRuleType( $result, $value ) {
- $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
- }
- public static function providePlural() {
- return [
- [ 'other', 0 ],
- [ 'one', 1 ],
- [ 'other', 2 ],
- [ 'other', 200 ],
- ];
- }
- }
|