ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
DefaultRendererFactoryTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
use
PHPUnit\Framework\TestCase
;
22
use
ILIAS\UI\Implementation\Component\Symbol\Glyph\Glyph
;
23
use
ILIAS\UI\Implementation\Component\Symbol\Glyph\Renderer
;
24
use
ILIAS\UI\Implementation\Render\DefaultRendererFactory
;
25
26
class
DefaultRendererFactoryForTest
extends
DefaultRendererFactory
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
38
class
DefaultRendererFactoryTest
extends
TestCase
39
{
40
public
function
test_getRendererNameFor
(): void
41
{
42
$f
=
new
DefaultRendererFactoryForTest
();
43
44
$renderer_class =
$f
->_getRendererNameFor(
new
Glyph
(
"up"
,
"up"
));
45
$expected = Renderer::class;
46
$this->assertEquals($expected, $renderer_class);
47
}
48
}
UI
Class Factory.
DefaultRendererFactory
DefaultRendererFactoryForTest\_getRendererNameFor
_getRendererNameFor(\ILIAS\UI\Component\Component $component)
Definition:
DefaultRendererFactoryTest.php:32
ILIAS
Class ChatMainBarProvider .
ILIAS\UI\Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
DefaultRendererFactoryTest
Definition:
DefaultRendererFactoryTest.php:38
DefaultRendererFactoryForTest\__construct
__construct()
Definition:
DefaultRendererFactoryTest.php:28
ILIAS\UI\Implementation\Render\DefaultRendererFactory\getRendererNameFor
getRendererNameFor(Component $component)
Get the name for the renderer of Component class.
Definition:
DefaultRendererFactory.php:77
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
DefaultRendererFactoryTest\test_getRendererNameFor
test_getRendererNameFor()
Definition:
DefaultRendererFactoryTest.php:40
Renderer
DefaultRendererFactoryForTest
Definition:
DefaultRendererFactoryTest.php:26
Glyph
ILIAS\UI\Implementation\Render\DefaultRendererFactory
Definition:
DefaultRendererFactory.php:29
TestCase
ILIAS\UI\Implementation\Component\Symbol\Glyph\Glyph
Definition:
Glyph.php:30
tests
UI
Renderer
DefaultRendererFactoryTest.php
Generated on Sun Aug 31 2025 22:02:54 for ILIAS by
1.8.13 (using
Doxyfile
)