public function TranslatorTest::testWhenAResourceHasNoRegisteredLoader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testWhenAResourceHasNoRegisteredLoader()
@expectedException \RuntimeException
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 268
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testWhenAResourceHasNoRegisteredLoader() {
$translator = new Translator('en');
$translator
->addResource('array', array(
'foo' => 'foofoo',
), 'en');
$translator
->trans('foo');
}