You are here

public function TranslatorTest::testSetInvalidLocale in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testSetInvalidLocale()

@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException

File

vendor/symfony/translation/Tests/TranslatorTest.php, line 61

Class

TranslatorTest

Namespace

Symfony\Component\Translation\Tests

Code

public function testSetInvalidLocale($locale) {
  $translator = new Translator('fr', new MessageSelector());
  $translator
    ->setLocale($locale);
}