3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../../Base.php");
46 $f->text(
"input1",
"in 1"),
47 $f->text(
"input2",
"in 2")
49 $label =
'section label';
50 $byline =
'section byline';
51 $section =
$f->section(
$inputs, $label, $byline);
54 <div
class=
"il-section-input">
55 <div
class=
"il-section-input-header">
56 <h2>section label</h2>
57 <div
class=
"il-section-input-header-byline">section byline</div>
59 <div
class=
"form-group row">
60 <label
for=
"id_1" class=
"control-label col-sm-4 col-md-3 col-lg-2">input1</label>
61 <div
class=
"col-sm-8 col-md-9 col-lg-10">
62 <input
id=
"id_1" type=
"text" name=
"" class=
"form-control form-control-sm" />
63 <div
class=
"help-block">in 1</div>
66 <div
class=
"form-group row">
67 <label
for=
"id_2" class=
"control-label col-sm-4 col-md-3 col-lg-2">input2</label>
68 <div
class=
"col-sm-8 col-md-9 col-lg-10">
69 <input
id=
"id_2" type=
"text" name=
"" class=
"form-control form-control-sm" />
70 <div
class=
"help-block">in 2</div>
76 $this->assertEquals($expected, $actual);
84 $f->text(
"input1",
"in 1")
86 $label =
'section label';
87 $byline =
'section byline';
88 $section =
$f->section(
$inputs, $label, $byline);
89 $actual = $this->
brutallyTrimHTML($r->render($section->withError(
"Some Error")));
91 <div
class=
"il-section-input">
92 <div
class=
"il-section-input-header">
93 <h2>section label</h2>
94 <div
class=
"il-section-input-header-byline">section byline</div>
96 <div
class=
"help-block alert alert-danger" role=
"alert"> Some
Error </div>
97 <div
class=
"form-group row">
98 <label
for=
"id_1" class=
"control-label col-sm-4 col-md-3 col-lg-2">input1</label>
99 <div
class=
"col-sm-8 col-md-9 col-lg-10">
100 <input
id=
"id_1" type=
"text" name=
"" class=
"form-control form-control-sm" />
101 <div
class=
"help-block">in 1</div>
107 $this->assertEquals($expected, $actual);
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
Provides common functionality for UI tests.