You are here

public function TranslatorTest::testSetInvalidLocale in Plug 7

@dataProvider getInvalidLocalesTests @expectedException \InvalidArgumentException

File

lib/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);
}