public function TranslatorTest::testWhenAResourceHasNoRegisteredLoader in Plug 7
@expectedException \RuntimeException
File
- lib/
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');
}