ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DefaultRendererFactoryTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 
27 {
28  public function __construct()
29  {
30  }
31 
32  public function _getRendererNameFor(\ILIAS\UI\Component\Component $component): string
33  {
34  return $this->getRendererNameFor($component);
35  }
36 }
37 
39 {
40  public function testGetRendererNameFor(): void
41  {
43 
44  $renderer_class = $f->_getRendererNameFor(new Glyph("up", "up"));
45  $expected = Renderer::class;
46  $this->assertEquals($expected, $renderer_class);
47  }
48 }
_getRendererNameFor(\ILIAS\UI\Component\Component $component)
Interface Observer Contains several chained tasks and infos about them.
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.