You are here

public function PluralizationRulesTest::testFailedLangcodes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/PluralizationRulesTest.php \Symfony\Component\Translation\Tests\PluralizationRulesTest::testFailedLangcodes()

We test failed langcode here.

TODO: The languages mentioned in the data provide need to get fixed somehow within PluralizationRules.

@dataProvider failingLangcodes

File

vendor/symfony/translation/Tests/PluralizationRulesTest.php, line 38

Class

PluralizationRulesTest
Test should cover all languages mentioned on http://translate.sourceforge.net/wiki/l10n/pluralforms and Plural forms mentioned on http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms.

Namespace

Symfony\Component\Translation\Tests

Code

public function testFailedLangcodes($nplural, $langCodes) {
  $matrix = $this
    ->generateTestData($nplural, $langCodes);
  $this
    ->validateMatrix($nplural, $matrix, false);
}