19 declare(strict_types=1);
    25     protected function setUp(): void
    29         $componentFactory = $this->getMockBuilder(ilComponentFactory::class)->getMock();
    33         $languageMock = $this->getMockBuilder(ilLanguage::class)->disableOriginalConstructor()->getMock();
    34         $languageMock->method(
'txt')->willReturnCallback(
static function (
string $key): 
string {
    35             if (
'error1' === $key) {
    36                 return '-' . $key . 
'-';
    39             if (
'error3' === $key) {
    40                 return $key . 
' (1. %s/2. %s/3. %s)';
    56             'Exactly one error' => [
    62                 'error1<ul><li>error2</li></ul>'    64             'More than two errors with placeholders' => [
    66                 'error1<ul><li>error2</li><li>error3 (1. a/2. b/3. c)</li></ul>'    77         $this->assertSame($expectedHtml, $this->
brutallyTrimHTML($this->errorFormatter->format($errors)));
 brutallyTrimHTML(string $html)
 
setGlobalVariable(string $name, $value)