ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
DefaultRendererFactoryTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
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
testGetRendererNameFor
(): 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
}
DefaultRendererFactory
DefaultRendererFactoryForTest\_getRendererNameFor
_getRendererNameFor(\ILIAS\UI\Component\Component $component)
Definition:
DefaultRendererFactoryTest.php:32
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
Factory
ILIAS\UI\Component
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:66
DefaultRendererFactoryTest\testGetRendererNameFor
testGetRendererNameFor()
Definition:
DefaultRendererFactoryTest.php:40
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
Renderer
DefaultRendererFactoryForTest
Definition:
DefaultRendererFactoryTest.php:26
Glyph
ILIAS\UI\Implementation\Render\DefaultRendererFactory
Definition:
DefaultRendererFactory.php:31
TestCase
ILIAS\UI\Implementation\Component\Symbol\Glyph\Glyph
Definition:
Glyph.php:30
TestCase
components
ILIAS
UI
tests
Renderer
DefaultRendererFactoryTest.php
Generated on Sun Aug 31 2025 23:04:17 for ILIAS by
1.8.13 (using
Doxyfile
)