3 * @author Amir E. Aharoni
4 * @copyright Copyright © 2012, Amir E. Aharoni
8 /** Tests for Samogitian */
9 class LanguageSgsTest
extends LanguageClassesTestCase
{
11 * @dataProvider providePluralAllForms
12 * @covers Language::convertPlural
14 public function testPluralAllForms( $result, $value ) {
15 $forms = array( 'one', 'two', 'few', 'other' );
16 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
20 * @dataProvider providePluralAllForms
21 * @covers Language::getPluralRuleType
23 public function testGetPluralRuleType( $result, $value ) {
24 $this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
27 public static function providePluralAllForms() {
46 * @dataProvider providePluralTwoForms
47 * @covers Language::convertPlural
49 public function testPluralTwoForms( $result, $value ) {
50 $forms = array( 'one', 'other' );
51 $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) );
54 public static function providePluralTwoForms() {
65 array( 'other', 100 ),
67 array( 'other', 111 ),
68 array( 'other', 112 ),