3 declare(strict_types=1);
    35     protected function mockUIFactory(): 
UIFactory    39             fn ($m) => $m->getName(),
    40             $ui_reflection->getMethods()
    43         $ui_factory = $this->getMockBuilder(UIFactory::class)
    44             ->onlyMethods($methods)
    48         $ui_factory->method(
'button')
    50         $ui_factory->method(
'viewControl')
    52         $ui_factory->method(
'breadcrumbs')
    54                 $this->returnCallback(
function ($crumbs) {
    55                     return new CImpl\Breadcrumbs\Breadcrumbs($crumbs);
    58         $ui_factory->method(
'link')
    60         $ui_factory->method(
'symbol')
    61             ->willReturn(
new CImpl\Symbol\Factory(
    63                 new CImpl\Symbol\Glyph\Factory(),
    64                 new CImpl\Symbol\Avatar\Factory()
    71     public function uiFactoryBreadcrumbs(...$args): 
CImpl\Breadcrumbs\Breadcrumbs
    73         return new CImpl\Breadcrumbs\Breadcrumbs($args[0]);
    79     protected function mockIlLanguage(): 
ilLanguage    81         $lng = $this->getMockBuilder(ilLanguage::class)
    82             ->disableOriginalConstructor()
    83             ->onlyMethods([
'txt'])
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...