5use PHPUnit\Framework\TestCase;
7require_once(__DIR__ .
"/TestComponent.php");
11 use \ILIAS\UI\Implementation\Render\LoaderHelper;
15 $c1 = new \ILIAS\UI\Component\Test\TestComponent(
"foo");
16 $c2 = new \ILIAS\UI\Implementation\Component\Symbol\Glyph\Glyph(
"up",
"up");
17 $names = $this->getContextNames([$c1, $c2]);
18 $expected = [
"TestComponentTest",
"GlyphGlyphSymbol"];
19 $this->assertEquals($expected, $names);
An exception for terminatinating execution or to throw for unit testing.