3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
34 return new I\Component\Chart\Factory(
35 $this->createMock(
C\Chart\ProgressMeter\Factory::class),
36 $this->createMock(
C\Chart\Bar\Factory::class)
44 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Chart\\ScaleBar",
$f->scaleBar(array(
"1" =>
false)));
58 $c =
$f->scaleBar($items);
60 $this->assertEquals(
$c->getItems(), $items);
75 $c =
$f->scaleBar($items);
77 $html = $r->render(
$c);
79 $expected_html = <<<EOT
80 <ul
class=
"il-chart-scale-bar">
81 <li style=
"width:25%">
82 <div
class=
"il-chart-scale-bar-item ">
86 <li style=
"width:25%">
87 <div
class=
"il-chart-scale-bar-item ">
91 <li style=
"width:25%">
92 <div
class=
"il-chart-scale-bar-item il-chart-scale-bar-active">
93 Medium <span
class=
"sr-only">(active)</span>
96 <li style=
"width:25%">
97 <div
class=
"il-chart-scale-bar-item ">
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
test_implements_factory_interface()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
Provides common functionality for UI tests.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...