function TranslatorTest::getTranslator
10 calls to TranslatorTest::getTranslator()
- TranslatorTest::testChoose in vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php - @dataProvider getChooseTests
- TranslatorTest::testGetLocaleReturnsDefaultLocaleIfNotSet in vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php - @requires extension intl
- TranslatorTest::testGetSetLocale in vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php - TranslatorTest::testInterval in vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php - @dataProvider getInterval
- TranslatorTest::testReturnMessageIfExactlyOneStandardRuleIsGiven in vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php
File
-
vendor/
symfony/ translation-contracts/ Test/ TranslatorTest.php, line 46
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 getTranslator() : TranslatorInterface {
return new class implements TranslatorInterface {
use TranslatorTrait;
};
}