ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ComponentRendererLoaderHelperTest.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5require_once(__DIR__ . "/TestComponent.php");
6
8{
9 use \ILIAS\UI\Implementation\Render\LoaderHelper;
10
11 public function test_getContextNames()
12 {
13 $c1 = new \ILIAS\UI\Component\Test\TestComponent("foo");
14 $c2 = new \ILIAS\UI\Implementation\Component\Glyph\Glyph("up", "up");
15 $names = $this->getContextNames([$c1, $c2]);
16 $expected = ["TestComponentTest", "GlyphGlyph"];
17 $this->assertEquals($expected, $names);
18 }
19}
An exception for terminatinating execution or to throw for unit testing.