14 $callback =
function ($languageId) use ($that) {
15 $that->assertEquals(
'some_key', $languageId);
16 return 'Some text "%s" and "%s"';
20 throw new \ILIAS\Refinery\ConstraintViolationException(
21 'This is an error message for developers',
24 'Some important stuff' 26 }
catch (\
ILIAS\
Refinery\ConstraintViolationException $exception) {
28 'Some text "Value To Replace" and "Some important stuff"',
29 $exception->getTranslatedMessage($callback)
33 'This is an error message for developers',
34 $exception->getMessage()
Class ChatMainBarProvider .
testTranslationOfMessage()