You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$html_renderer_no_template_file = new \SlimMvcTools\HtmlErrorRenderer('');
156
+
157
+
// No container set on renderer scenario
158
+
self::assertEquals('', $html_renderer_no_template_file->getLocalizedText('NON_EXISTENT_TEXT_IN_LOCALE_FILE')); // should return default fall back text which is ''
159
+
self::assertEquals('fallback text', $html_renderer_no_template_file->getLocalizedText('NON_EXISTENT_TEXT_IN_LOCALE_FILE', 'fallback text')); // should return specified fall back text
self::assertEquals('', $html_renderer_no_template_file->getLocalizedText('NON_EXISTENT_TEXT_IN_LOCALE_FILE')); // should return default fall back text which is ''
165
+
self::assertEquals('fallback text', $html_renderer_no_template_file->getLocalizedText('NON_EXISTENT_TEXT_IN_LOCALE_FILE', 'fallback text')); // should return specified fall back text
166
+
self::assertEquals('Home', $html_renderer_no_template_file->getLocalizedText('main_template_text_home')); // should return text from locale file
167
+
self::assertEquals('English', $html_renderer_no_template_file->getLocalizedText('base_controller_text_english', 'fallback text')); // should return text from locale file
0 commit comments