ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ComponentRendererLoaderHelperTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 
26 require_once(__DIR__ . "/TestComponent.php");
27 
29 {
30  use LoaderHelper;
31 
32  public function testGetContextNames(): void
33  {
34  $c1 = new TestComponent("foo");
35  $c2 = new Glyph("up", "up");
36  $names = $this->getContextNames([$c1, $c2]);
37  $expected = ["TestComponentTest", "GlyphGlyphSymbol"];
38  $this->assertEquals($expected, $names);
39  }
40 }