19 require_once(
"vendor/composer/vendor/autoload.php");
21 require_once(__DIR__ .
"/../../Base.php");
32 return new \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory();
37 return new \ILIAS\UI\Implementation\Component\Counter\Factory();
43 $expected_html = file_get_contents(__DIR__ .
"/../../Client/Counter/CounterTest.html");
50 RENDERED_HTML_OF_TEST_1 54 RENDERED_HTML_OF_TEST_2 60 $glyph_with_counter = $add_glpyh->withCounter($counter_factory->status(1))
61 ->withCounter($counter_factory->novelty(5));
63 $r = $this->getDefaultRenderer();
64 $rendered_html_of_test_1 =
$r->render($glyph_with_counter);
65 $rendered_html_of_test_2 = $rendered_html_of_test_1 . $rendered_html_of_test_1;
67 $rendered_html = str_replace(
"RENDERED_HTML_OF_TEST_1", $rendered_html_of_test_1, $rendered_html);
68 $rendered_html = str_replace(
"RENDERED_HTML_OF_TEST_2", $rendered_html_of_test_2, $rendered_html);
70 $this->assertHTMLEquals($this->brutallyTrimHTML($expected_html), $this->brutallyTrimHTML($rendered_html));
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...