function TranslatorTest::testThrowExceptionIfMatchingMessageCannotBeFound
@dataProvider getNonMatchingMessages
File
-
vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php, line 184
Class
- TranslatorTest
- 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\Contracts\Translation\TestCode
public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number) {
$translator = $this->getTranslator();
$this->expectException(\InvalidArgumentException::class);
$translator->trans($id, [
'%count%' => $number,
]);
}