Elgg\I18n\MessageTranslatorTest::testKeyIsReturnedIfNoTranslationCanBeFound PHP Method

testKeyIsReturnedIfNoTranslationCanBeFound() public method

    public function testKeyIsReturnedIfNoTranslationCanBeFound()
    {
        $messages = new ArrayMessageBundle([]);
        $translator = new MessageTranslator(Locale::parse('en'), $messages);
        $this->assertEquals('foobar', $translator->translate('foobar'));
    }