- HTML,
- $instance->run()
- );
- }
-
public function testRenderWithXSS(): void
{
$instance = new class () {
diff --git a/tests/Attribute/Custom/HasTemplateTest.php b/tests/Attribute/Custom/HasTemplateTest.php
deleted file mode 100644
index 75d1b1c3..00000000
--- a/tests/Attribute/Custom/HasTemplateTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->template(''));
- }
-}
diff --git a/tests/Attribute/Input/HasHeightTest.php b/tests/Attribute/Input/HasHeightTest.php
deleted file mode 100644
index ad8602fc..00000000
--- a/tests/Attribute/Input/HasHeightTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-assertNotSame($instance, $instance->height(0));
- }
-}
From de9f447ffe537ff266ae6a06e93bcbe0d4776448 Mon Sep 17 00:00:00 2001
From: Wilmer Arambula
Date: Mon, 4 Mar 2024 08:33:08 -0300
Subject: [PATCH 21/25] Update form control classes and remove unused test
classes.
---
docs/form-control/Button.md | 20 ++--
docs/form-control/Label.md | 20 ++--
docs/form-control/Select.md | 20 ++--
docs/form-control/TextArea.md | 20 ++--
docs/form-control/input/Button.md | 20 ++--
docs/form-control/input/Checkbox.md | 20 ++--
docs/form-control/input/Color.md | 20 ++--
docs/form-control/input/Date.md | 22 ++--
docs/form-control/input/Datetime.md | 20 ++--
docs/form-control/input/DatetimeLocal.md | 20 ++--
docs/form-control/input/Email.md | 20 ++--
docs/form-control/input/File.md | 20 ++--
docs/form-control/input/Image.md | 20 ++--
docs/form-control/input/Month.md | 20 ++--
docs/form-control/input/Number.md | 20 ++--
docs/form-control/input/Password.md | 20 ++--
docs/form-control/input/Radio.md | 20 ++--
docs/form-control/input/Range.md | 20 ++--
docs/form-control/input/Reset.md | 20 ++--
docs/form-control/input/Search.md | 20 ++--
docs/form-control/input/Submit.md | 20 ++--
docs/form-control/input/Text.md | 20 ++--
docs/form-control/input/Time.md | 20 ++--
docs/form-control/input/Url.md | 20 ++--
docs/form-control/input/Week.md | 20 ++--
docs/multimedia/Img.md | 20 ++--
docs/textual/A.md | 20 ++--
docs/textual/I.md | 20 ++--
docs/textual/Span.md | 20 ++--
src/Attribute/Custom/HasPrefixCollection.php | 101 ----------------
src/Attribute/Custom/HasSuffixCollection.php | 101 ----------------
src/Base/AbstractElement.php | 32 +++--
src/FormControl/Base/AbstractSelect.php | 26 ++---
src/FormControl/Button.php | 16 +--
src/FormControl/Input/Base/AbstractButton.php | 28 ++---
src/FormControl/Input/Base/AbstractInput.php | 16 +--
.../Input/Base/AbstractInputChoice.php | 43 +++----
src/FormControl/Input/File.php | 2 +
src/FormControl/TextArea.php | 2 +
tests/Attribute/Custom/HasAttributesTest.php | 36 ------
tests/Attribute/Custom/HasClosureTest.php | 20 ----
.../Custom/HasContainerCollectionTest.php | 81 -------------
.../Custom/HasContainerMenuCollectionTest.php | 62 ----------
.../Custom/HasContainerPrefixTest.php | 20 ----
.../Custom/HasContainerSuffixTest.php | 20 ----
.../Custom/HasContainerTemplateTest.php | 20 ----
.../Custom/HasContentAttributeTest.php | 22 ----
tests/Attribute/Custom/HasCsrfTest.php | 75 ------------
.../Custom/HasEnclosedByLabelTest.php | 20 ----
.../Custom/HasLabelItemClassTest.php | 20 ----
.../Custom/HasPrefixCollectionTest.php | 79 -------------
tests/Attribute/Custom/HasPrefixItemsTest.php | 52 ---------
tests/Attribute/Custom/HasSeparatorTest.php | 20 ----
.../Custom/HasSuffixCollectionTest.php | 79 -------------
tests/Attribute/Custom/HasSuffixItemsTest.php | 52 ---------
tests/Attribute/Custom/HasTagNameTest.php | 37 ------
tests/Attribute/Custom/HasTokenValuesTest.php | 20 ----
.../Custom/HasUnchekedCollectionTest.php | 65 -----------
tests/FormControl/Button/CustomMethodTest.php | 82 ++++++-------
.../Input/Button/CustomMethodTest.php | 101 ++++++++--------
.../Input/Checkbox/CustomMethodTest.php | 102 +++++++---------
.../Input/Color/CustomMethodTest.php | 106 ++++++++---------
.../Input/Date/CustomMethodTest.php | 110 +++++++-----------
.../Input/Datetime/CustomMethodTest.php | 108 ++++++++---------
.../Input/DatetimeLocal/CustomMethodTest.php | 110 +++++++-----------
.../Input/Email/CustomMethodTest.php | 103 +++++++---------
.../Input/File/CustomMethodTest.php | 104 +++++++----------
.../Input/Image/CustomMethodTest.php | 104 ++++++++---------
.../Input/Month/CustomMethodTest.php | 108 ++++++++---------
.../Input/Number/CustomMethodTest.php | 108 ++++++++---------
.../Input/Password/CustomMethodTest.php | 108 ++++++++---------
.../Input/Radio/CustomMethodTest.php | 103 +++++++---------
.../Input/Range/CustomMethodTest.php | 108 ++++++++---------
.../Input/Reset/CustomMethodTest.php | 104 +++++++++--------
.../Input/Search/CustomMethodTest.php | 103 +++++++---------
.../Input/Submit/CustomMethodTest.php | 96 +++++++--------
.../Input/Text/CustomMethodTest.php | 110 +++++++-----------
.../Input/Time/CustomMethodTest.php | 110 +++++++-----------
.../Input/Url/CustomMethodTest.php | 110 +++++++-----------
.../Input/Week/CustomMethodTest.php | 110 +++++++-----------
tests/FormControl/Label/CustomMethodTest.php | 88 +++++---------
tests/FormControl/Select/CustomMethodTest.php | 87 +++++++-------
.../FormControl/TextArea/CustomMethodTest.php | 102 +++++++---------
tests/Mutlimedia/Img/CustomMethodTest.php | 56 ++++-----
tests/Tag/CustomMethodTest.php | 110 +++++++-----------
tests/Textual/A/CustomMethodTest.php | 56 ++++-----
tests/Textual/I/CustomMethodTest.php | 56 ++++-----
tests/Textual/Span/CustomMethodTest.php | 94 ++++++++++++---
88 files changed, 1639 insertions(+), 3067 deletions(-)
delete mode 100644 src/Attribute/Custom/HasPrefixCollection.php
delete mode 100644 src/Attribute/Custom/HasSuffixCollection.php
delete mode 100644 tests/Attribute/Custom/HasAttributesTest.php
delete mode 100644 tests/Attribute/Custom/HasClosureTest.php
delete mode 100644 tests/Attribute/Custom/HasContainerCollectionTest.php
delete mode 100644 tests/Attribute/Custom/HasContainerMenuCollectionTest.php
delete mode 100644 tests/Attribute/Custom/HasContainerPrefixTest.php
delete mode 100644 tests/Attribute/Custom/HasContainerSuffixTest.php
delete mode 100644 tests/Attribute/Custom/HasContainerTemplateTest.php
delete mode 100644 tests/Attribute/Custom/HasContentAttributeTest.php
delete mode 100644 tests/Attribute/Custom/HasCsrfTest.php
delete mode 100644 tests/Attribute/Custom/HasEnclosedByLabelTest.php
delete mode 100644 tests/Attribute/Custom/HasLabelItemClassTest.php
delete mode 100644 tests/Attribute/Custom/HasPrefixCollectionTest.php
delete mode 100644 tests/Attribute/Custom/HasPrefixItemsTest.php
delete mode 100644 tests/Attribute/Custom/HasSeparatorTest.php
delete mode 100644 tests/Attribute/Custom/HasSuffixCollectionTest.php
delete mode 100644 tests/Attribute/Custom/HasSuffixItemsTest.php
delete mode 100644 tests/Attribute/Custom/HasTagNameTest.php
delete mode 100644 tests/Attribute/Custom/HasTokenValuesTest.php
delete mode 100644 tests/Attribute/Custom/HasUnchekedCollectionTest.php
diff --git a/docs/form-control/Button.md b/docs/form-control/Button.md
index 028803b1..b25a7229 100644
--- a/docs/form-control/Button.md
+++ b/docs/form-control/Button.md
@@ -148,17 +148,17 @@ The following methods are available for customizing the `HTML` output:
| `containerAttributes()` | Set `attributes` for the `container` element. |
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
-| `prefix()` | Add text before the `button` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container`. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `button` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `tagName()` | Set the `tag` for the `button` element. |
| | Allowed values: `a`, `button`. |
| `template()` | Set the `template` for the `button` element. |
diff --git a/docs/form-control/Label.md b/docs/form-control/Label.md
index 81722827..6564d292 100644
--- a/docs/form-control/Label.md
+++ b/docs/form-control/Label.md
@@ -123,16 +123,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `prefix()` | Add text before the `label` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the `template` for the `label` element. |
| `widget()` | Instantiates the `Label::class`. |
diff --git a/docs/form-control/Select.md b/docs/form-control/Select.md
index a6890690..5cbaea9b 100644
--- a/docs/form-control/Select.md
+++ b/docs/form-control/Select.md
@@ -236,15 +236,15 @@ The following methods are available for customizing the `HTML` output:
| `labelClass()` | Set the `class` attribute for the `label` element. |
| `labelContent()` | Set the `content` for the `label` element. |
| `labelFor()` | Set the `for` attribute for the `label` element. |
-| `prefix()` | Add text before the `select` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `select` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `widget()` | Instantiates the `Select::class`. |
diff --git a/docs/form-control/TextArea.md b/docs/form-control/TextArea.md
index 2c31699d..d140869b 100644
--- a/docs/form-control/TextArea.md
+++ b/docs/form-control/TextArea.md
@@ -146,17 +146,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `tokenValues()` | Set the token values for the `HTML` output. |
| `widget()` | Instantiates the `TextArea::class`. |
diff --git a/docs/form-control/input/Button.md b/docs/form-control/input/Button.md
index 5143f474..125faf3d 100644
--- a/docs/form-control/input/Button.md
+++ b/docs/form-control/input/Button.md
@@ -135,17 +135,17 @@ The following methods are available for customizing the `HTML` output:
| `containerAttributes()` | Set `attributes` for the `container` element. |
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Button::class`. |
|
diff --git a/docs/form-control/input/Checkbox.md b/docs/form-control/input/Checkbox.md
index ec177d49..c9603689 100644
--- a/docs/form-control/input/Checkbox.md
+++ b/docs/form-control/input/Checkbox.md
@@ -184,18 +184,18 @@ The following methods are available for customizing the `HTML` output:
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
| `separator()` | Set the `separator` for the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `uncheckAttributes()` | Set the attributes for the hidden input tag. |
| `uncheckClass()` | Set the `class` attribute for the hidden input tag. |
diff --git a/docs/form-control/input/Color.md b/docs/form-control/input/Color.md
index ac10f750..09e37db3 100644
--- a/docs/form-control/input/Color.md
+++ b/docs/form-control/input/Color.md
@@ -144,17 +144,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Color::class`. |
diff --git a/docs/form-control/input/Date.md b/docs/form-control/input/Date.md
index 0918aa88..6ba24c43 100644
--- a/docs/form-control/input/Date.md
+++ b/docs/form-control/input/Date.md
@@ -141,18 +141,18 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Date::class`. |
diff --git a/docs/form-control/input/Datetime.md b/docs/form-control/input/Datetime.md
index 9859cd07..9b885359 100644
--- a/docs/form-control/input/Datetime.md
+++ b/docs/form-control/input/Datetime.md
@@ -142,17 +142,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Datetime::class`. |
diff --git a/docs/form-control/input/DatetimeLocal.md b/docs/form-control/input/DatetimeLocal.md
index 382a67e2..76c2f31e 100644
--- a/docs/form-control/input/DatetimeLocal.md
+++ b/docs/form-control/input/DatetimeLocal.md
@@ -142,17 +142,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `DatetimeLocal::class`. |
diff --git a/docs/form-control/input/Email.md b/docs/form-control/input/Email.md
index 43171b43..5a5e1265 100644
--- a/docs/form-control/input/Email.md
+++ b/docs/form-control/input/Email.md
@@ -148,17 +148,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Email::class`. |
diff --git a/docs/form-control/input/File.md b/docs/form-control/input/File.md
index 59915ac1..00100c6c 100644
--- a/docs/form-control/input/File.md
+++ b/docs/form-control/input/File.md
@@ -143,17 +143,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `uncheckAttributes()` | Set the attributes for the hidden input tag. |
| `uncheckClass()` | Set the `class` attribute for the hidden input tag. |
diff --git a/docs/form-control/input/Image.md b/docs/form-control/input/Image.md
index 720ee321..5c78bcc2 100644
--- a/docs/form-control/input/Image.md
+++ b/docs/form-control/input/Image.md
@@ -154,16 +154,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Image::class`. |
diff --git a/docs/form-control/input/Month.md b/docs/form-control/input/Month.md
index 27967bd0..9b4a1422 100644
--- a/docs/form-control/input/Month.md
+++ b/docs/form-control/input/Month.md
@@ -142,17 +142,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Month::class`. |
diff --git a/docs/form-control/input/Number.md b/docs/form-control/input/Number.md
index a9c283c7..5906eb2c 100644
--- a/docs/form-control/input/Number.md
+++ b/docs/form-control/input/Number.md
@@ -143,17 +143,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Number::class`. |
diff --git a/docs/form-control/input/Password.md b/docs/form-control/input/Password.md
index 2561e9d4..3f4fd938 100644
--- a/docs/form-control/input/Password.md
+++ b/docs/form-control/input/Password.md
@@ -146,17 +146,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Password::class`. |
diff --git a/docs/form-control/input/Radio.md b/docs/form-control/input/Radio.md
index 1421e528..d1382aa3 100644
--- a/docs/form-control/input/Radio.md
+++ b/docs/form-control/input/Radio.md
@@ -185,18 +185,18 @@ The following methods are available for customizing the `HTML` output:
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `separator()` | Set the `separator` for the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
| `template()` | Set the template for the `HTML` output. |
| `uncheckAttributes()` | Set the attributes for the hidden input tag. |
| `uncheckClass()` | Set the `class` attribute for the hidden input tag. |
diff --git a/docs/form-control/input/Range.md b/docs/form-control/input/Range.md
index 59befee0..ddc83335 100644
--- a/docs/form-control/input/Range.md
+++ b/docs/form-control/input/Range.md
@@ -144,17 +144,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Range::class`. |
diff --git a/docs/form-control/input/Reset.md b/docs/form-control/input/Reset.md
index a4c33914..255d05cf 100644
--- a/docs/form-control/input/Reset.md
+++ b/docs/form-control/input/Reset.md
@@ -135,17 +135,17 @@ The following methods are available for customizing the `HTML` output:
| `containerAttributes()` | Set `attributes` for the `container` element. |
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Reset::class`. |
|
diff --git a/docs/form-control/input/Search.md b/docs/form-control/input/Search.md
index b73eb9f5..5643d182 100644
--- a/docs/form-control/input/Search.md
+++ b/docs/form-control/input/Search.md
@@ -146,17 +146,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Search::class`. |
diff --git a/docs/form-control/input/Submit.md b/docs/form-control/input/Submit.md
index 14d7927e..bdac1631 100644
--- a/docs/form-control/input/Submit.md
+++ b/docs/form-control/input/Submit.md
@@ -135,17 +135,17 @@ The following methods are available for customizing the `HTML` output:
| `containerAttributes()` | Set `attributes` for the `container` element. |
| `containerClass()` | Set the `class` attribute for the `container` element. |
| `containerTag()` | Set the `tag` for the `container` element. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Submit::class`. |
|
diff --git a/docs/form-control/input/Text.md b/docs/form-control/input/Text.md
index 32ef1e62..e2b7342c 100644
--- a/docs/form-control/input/Text.md
+++ b/docs/form-control/input/Text.md
@@ -146,17 +146,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Text::class`. |
diff --git a/docs/form-control/input/Time.md b/docs/form-control/input/Time.md
index 316414d4..4c0840f5 100644
--- a/docs/form-control/input/Time.md
+++ b/docs/form-control/input/Time.md
@@ -142,17 +142,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Time::class`. |
diff --git a/docs/form-control/input/Url.md b/docs/form-control/input/Url.md
index 359cba0c..a0542f57 100644
--- a/docs/form-control/input/Url.md
+++ b/docs/form-control/input/Url.md
@@ -146,17 +146,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Url::class`. |
diff --git a/docs/form-control/input/Week.md b/docs/form-control/input/Week.md
index 2515eca8..4164fd61 100644
--- a/docs/form-control/input/Week.md
+++ b/docs/form-control/input/Week.md
@@ -143,17 +143,17 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
| `fieldAttributes()` | Generate the field id and name for the `HTML` output. |
-| `prefix()` | Add text before the `textarea` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `input` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `label` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `input` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Week::class`. |
diff --git a/docs/multimedia/Img.md b/docs/multimedia/Img.md
index ace41fe1..38b6bda7 100644
--- a/docs/multimedia/Img.md
+++ b/docs/multimedia/Img.md
@@ -126,16 +126,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `prefix()` | Add text before the `img` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `img` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the `template` for the `img` element. |
| `widget()` | Instantiates the `Img::class`. |
diff --git a/docs/textual/A.md b/docs/textual/A.md
index 42957930..cfa5e108 100644
--- a/docs/textual/A.md
+++ b/docs/textual/A.md
@@ -141,16 +141,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `prefix()` | Add text before the `a` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `a` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the `template` for the `a` element. |
| `widget()` | Instantiates the `A::class`. |
diff --git a/docs/textual/I.md b/docs/textual/I.md
index ad186e02..fa674d58 100644
--- a/docs/textual/I.md
+++ b/docs/textual/I.md
@@ -119,16 +119,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `prefix()` | Add text before the `i` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `i` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the `template` for the `i` element. |
| `widget()` | Instantiates the `I::class`. |
diff --git a/docs/textual/Span.md b/docs/textual/Span.md
index 65798410..3e6f1467 100644
--- a/docs/textual/Span.md
+++ b/docs/textual/Span.md
@@ -95,16 +95,16 @@ The following methods are available for customizing the `HTML` output:
| Method | Description |
| ---------------------------- | ------------------------------------------------------------------------------------- |
-| `prefix()` | Add text before the `a` element. |
-| `prefixContainer()` | Set enabled or disabled for the `prefix-container` element. |
-| `prefixContainerAttributes()`| Set `attributes` for the `prefix-container` element. |
-| `prefixContainerClass()` | Set the `class` attribute for the `prefix-container` element. |
-| `prefixContainerTag()` | Set the `tag` for the `prefix-container` element. |
+| `prefix()` | Add text before the `tag` element. If empty, the `prefix` tag will be disabled. |
+| `prefixAttributes()` | Set `attributes` for the `prefix` element. |
+| `prefixClass()` | Set the `class` attribute for the `prefix` element. |
+| `prefixTag()` | Set the `tag` for the `prefix` element. |
+| | If `false` the prefix tag will be disabled. |
| `render()` | Generates the `HTML` output. |
-| `suffix()` | Add text after the `a` element. |
-| `suffixContainer()` | Set enabled or disabled for the `suffix-container` element. |
-| `suffixContainerAttributes()`| Set `attributes` for the `suffix-container` element. |
-| `suffixContainerClass()` | Set the `class` attribute for the `suffix-container` element. |
-| `suffixContainerTag()` | Set the `tag` for the `suffix-container` element. |
+| `suffix()` | Add text after the `tag` element. If empty, the `suffix` tag will be disabled. |
+| `suffixAttributes()` | Set `attributes` for the `suffix` element. |
+| `suffixClass()` | Set the `class` attribute for the `suffix` element. |
+| `suffixTag()` | Set the `tag` for the `suffix-container` element. |
+| | If `false` the suffix tag will be disabled. |
| `template()` | Set the template for the `HTML` output. |
| `widget()` | Instantiates the `Span::class`. |
diff --git a/src/Attribute/Custom/HasPrefixCollection.php b/src/Attribute/Custom/HasPrefixCollection.php
deleted file mode 100644
index d72ad705..00000000
--- a/src/Attribute/Custom/HasPrefixCollection.php
+++ /dev/null
@@ -1,101 +0,0 @@
-prefix = Sanitize::html(...$values);
-
- return $new;
- }
-
- /**
- * Enable or disable the prefix container.
- *
- * @param bool $value The prefix container value.
- *
- * @return static A new instance of the current class with the specified prefix container value.
- */
- public function prefixContainer(bool $value): static
- {
- $new = clone $this;
- $new->prefixContainer = $value;
-
- return $new;
- }
-
- /**
- * Set the `HTML` attributes for the prefix container.
- *
- * @param array $values Attribute values indexed by attribute names.
- *
- * @return static A new instance of the current class with the specified prefix container attributes.
- */
- public function prefixContainerAttributes(array $values): static
- {
- $new = clone $this;
- $new->prefixContainerAttributes = $values;
-
- return $new;
- }
-
- /**
- * Set the `CSS` class for the prefix container.
- *
- * @param string $value The CSS class name.
- * @param bool $override If `true` the value will be overridden.
- *
- * @return static A new instance of the current class with the specified prefix container class.
- */
- public function prefixContainerClass(string $value, bool $override = false): static
- {
- $new = clone $this;
- CssClass::add($new->prefixContainerAttributes, $value, $override);
-
- return $new;
- }
-
- /**
- * Set the prefix container tag name.
- *
- * @param string $value The tag name for the prefix container element.
- *
- * @throws InvalidArgumentException If the prefix container tag is an empty string.
- *
- * @return static A new instance of the current class with the specified prefix container tag.
- */
- public function prefixContainerTag(string $value): static
- {
- if ($value === '') {
- throw new InvalidArgumentException('The prefix container tag must be a non-empty string.');
- }
-
- $new = clone $this;
- $new->prefixContainerTag = $value;
-
- return $new;
- }
-}
diff --git a/src/Attribute/Custom/HasSuffixCollection.php b/src/Attribute/Custom/HasSuffixCollection.php
deleted file mode 100644
index 16ef7fd3..00000000
--- a/src/Attribute/Custom/HasSuffixCollection.php
+++ /dev/null
@@ -1,101 +0,0 @@
-suffix = Sanitize::html(...$values);
-
- return $new;
- }
-
- /**
- * Enable or disable the suffix container.
- *
- * @param bool $value The suffix container value.
- *
- * @return static A new instance of the current class with the specified suffix container value.
- */
- public function suffixContainer(bool $value): static
- {
- $new = clone $this;
- $new->suffixContainer = $value;
-
- return $new;
- }
-
- /**
- * Set the `HTML` attributes for the suffix container.
- *
- * @param array $values Attribute values indexed by attribute names.
- *
- * @return static A new instance of the current class with the specified suffix container attributes.
- */
- public function suffixContainerAttributes(array $values): static
- {
- $new = clone $this;
- $new->suffixContainerAttributes = $values;
-
- return $new;
- }
-
- /**
- * Set the `CSS` class for the suffix container.
- *
- * @param string $value The CSS class name.
- * @param bool $override If `true` the value will be overridden.
- *
- * @return static A new instance of the current class with the specified suffix container class.
- */
- public function suffixContainerClass(string $value, bool $override = false): static
- {
- $new = clone $this;
- CssClass::add($new->suffixContainerAttributes, $value, $override);
-
- return $new;
- }
-
- /**
- * Set the suffix container tag name.
- *
- * @param string $value The tag name for the suffix container element.
- *
- * @throws InvalidArgumentException If the suffix container tag is an empty string.
- *
- * @return static A new instance of the current class with the specified suffix container tag.
- */
- public function suffixContainerTag(string $value): static
- {
- if ($value === '') {
- throw new InvalidArgumentException('The suffix container tag must be a non-empty string.');
- }
-
- $new = clone $this;
- $new->suffixContainerTag = $value;
-
- return $new;
- }
-}
diff --git a/src/Base/AbstractElement.php b/src/Base/AbstractElement.php
index be2029cd..4fb26b49 100644
--- a/src/Base/AbstractElement.php
+++ b/src/Base/AbstractElement.php
@@ -6,14 +6,14 @@
use PHPForge\{
Html\Attribute\Custom\HasAttributes,
- Html\Attribute\Custom\HasPrefixCollection,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\Global\HasClass,
Html\Attribute\Global\HasData,
Html\Attribute\Global\HasId,
Html\Attribute\Global\HasLang,
Html\Attribute\Global\HasStyle,
Html\Attribute\Global\HasTitle,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\HasTemplate,
Html\Helper\Template,
Html\HtmlBuilder,
@@ -21,6 +21,7 @@
Html\Tag,
Widget\Element
};
+use PHPForge\Html\Document\Html;
/**
* Provides a foundation for creating HTML elements with various attributes and content.
@@ -46,6 +47,8 @@ abstract class AbstractElement extends Element implements RenderInterface
protected function loadDefaultDefinitions(): array
{
return [
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{tag}\n{suffix}'],
];
}
@@ -62,30 +65,21 @@ protected function loadDefaultDefinitions(): array
protected function buildElement(string $tagName, string $content = '', array $tokenValues = []): string
{
$tokenTemplateValues = [
- '{prefix}' => $this->renderTag(
- $this->prefixContainerAttributes,
- $this->prefixContainer,
- $this->prefix,
- $this->prefixContainerTag
- ),
+ '{prefix}' => $this->renderTag($this->prefixAttributes, $this->prefix, $this->prefixTag),
'{tag}' => HtmlBuilder::create($tagName, $content, $this->attributes),
- '{suffix}' => $this->renderTag(
- $this->suffixContainerAttributes,
- $this->suffixContainer,
- $this->suffix,
- $this->suffixContainerTag
- ),
+ '{suffix}' => $this->renderTag($this->suffixAttributes, $this->suffix, $this->suffixTag),
];
$tokenTemplateValues += $tokenValues;
return Template::render($this->template, $tokenTemplateValues);
}
- private function renderTag(array $attributes, bool $container, string $content, string $tag): string
+ private function renderTag(array $attributes, string $content, false|string $tag): string
{
- return match ($container) {
- true => Tag::widget()->attributes($attributes)->content($content)->tagName($tag)->render(),
- false => $content,
- };
+ if ($content === '' || $tag === false) {
+ return $content;
+ }
+
+ return HtmlBuilder::create($tag, $content, $attributes);
}
}
diff --git a/src/FormControl/Base/AbstractSelect.php b/src/FormControl/Base/AbstractSelect.php
index 9d663842..c10c2edf 100644
--- a/src/FormControl/Base/AbstractSelect.php
+++ b/src/FormControl/Base/AbstractSelect.php
@@ -8,24 +8,20 @@
use PHPForge\{
Html\Attribute\Aria\HasAriaLabel,
Html\Attribute\Custom\HasAttributes,
- Html\Attribute\Custom\HasPrefixCollection,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\FormControl\CanBeDisabled,
Html\Attribute\FormControl\CanBeMultiple,
Html\Attribute\FormControl\CanBeRequired,
Html\Attribute\FormControl\HasAutocomplete,
Html\Attribute\FormControl\HasFieldAttributes,
Html\Attribute\FormControl\HasName,
- Html\Attribute\FormControl\Label\CanBeDisableLabel,
- Html\Attribute\FormControl\Label\HasLabel,
- Html\Attribute\FormControl\Label\HasLabelAttributes,
- Html\Attribute\FormControl\Label\HasLabelClass,
- Html\Attribute\FormControl\Label\HasLabelFor,
+ Html\Attribute\FormControl\Label\HasLabelCollection,
Html\Attribute\Global\CanBeAutofocus,
Html\Attribute\Global\HasClass,
Html\Attribute\Global\HasId,
Html\Attribute\Global\HasStyle,
Html\Attribute\Global\HasTabindex,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\Input\HasSize,
Html\Attribute\Input\HasValue,
Html\Attribute\Tag\HasGroup,
@@ -60,7 +56,6 @@ abstract class AbstractSelect extends Element implements
{
use CanBeAutofocus;
use CanBeDisabled;
- use CanBeDisableLabel;
use CanBeMultiple;
use CanBeRequired;
use HasAriaLabel;
@@ -72,10 +67,7 @@ abstract class AbstractSelect extends Element implements
use HasId;
use HasItems;
use HasItemsAttributes;
- use HasLabel;
- use HasLabelAttributes;
- use HasLabelClass;
- use HasLabelFor;
+ use HasLabelCollection;
use HasName;
use HasPrefixCollection;
use HasPrompt;
@@ -119,13 +111,11 @@ protected function run(): string
->attributes($this->attributes)
->content($items)
->prefix($this->prefix)
- ->prefixContainer($this->prefixContainer)
- ->prefixContainerAttributes($this->prefixContainerAttributes)
- ->prefixContainerTag($this->prefixContainerTag)
+ ->prefixAttributes($this->prefixAttributes)
+ ->prefixTag($this->prefixTag)
->suffix($this->suffix)
- ->suffixContainer($this->suffixContainer)
- ->suffixContainerAttributes($this->suffixContainerAttributes)
- ->suffixContainerTag($this->suffixContainerTag)
+ ->suffixAttributes($this->suffixAttributes)
+ ->suffixTag($this->suffixTag)
->tagName('select');
if ($this->disableLabel === true || $this->label === '') {
diff --git a/src/FormControl/Button.php b/src/FormControl/Button.php
index a0bdfdab..a2ce7adb 100644
--- a/src/FormControl/Button.php
+++ b/src/FormControl/Button.php
@@ -13,8 +13,6 @@
Html\Attribute\Aria\HasRole,
Html\Attribute\Custom\HasAttributes,
Html\Attribute\Custom\HasContainerCollection,
- Html\Attribute\Custom\HasPrefixCollection,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\Custom\HasTagName,
Html\Attribute\FormControl\HasFormaction,
Html\Attribute\FormControl\HasFormenctype,
@@ -30,6 +28,8 @@
Html\Attribute\Global\HasTabindex,
Html\Attribute\Global\HasTitle,
Html\Attribute\HasContent,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\HasTemplate,
Html\Helper\Utils,
Html\Helper\Validator,
@@ -83,6 +83,8 @@ protected function loadDefaultDefinitions(): array
{
return [
'id()' => [Utils::generateId('button-')],
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{tag}\n{suffix}'],
'tagName()' => ['button'],
];
@@ -120,13 +122,11 @@ protected function run(): string
->attributes($attributes)
->content($this->content)
->prefix($this->prefix)
- ->prefixContainer($this->prefixContainer)
- ->prefixContainerAttributes($this->prefixContainerAttributes)
- ->prefixContainerTag($this->prefixContainerTag)
+ ->prefixAttributes($this->prefixAttributes)
+ ->prefixTag($this->prefixTag)
->suffix($this->suffix)
- ->suffixContainer($this->suffixContainer)
- ->suffixContainerAttributes($this->suffixContainerAttributes)
- ->suffixContainerTag($this->suffixContainerTag)
+ ->suffixAttributes($this->suffixAttributes)
+ ->suffixTag($this->suffixTag)
->tagName($this->tagName)
->template($this->template)
->type($this->type)
diff --git a/src/FormControl/Input/Base/AbstractButton.php b/src/FormControl/Input/Base/AbstractButton.php
index cac0b086..a7d33098 100644
--- a/src/FormControl/Input/Base/AbstractButton.php
+++ b/src/FormControl/Input/Base/AbstractButton.php
@@ -9,8 +9,6 @@
Html\Attribute\Aria\HasAriaLabel,
Html\Attribute\Custom\HasAttributes,
Html\Attribute\Custom\HasContainerCollection,
- Html\Attribute\Custom\HasPrefixCollection,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\FormControl\CanBeDisabled,
Html\Attribute\FormControl\CanBeReadonly,
Html\Attribute\FormControl\HasForm,
@@ -20,11 +18,7 @@
Html\Attribute\FormControl\HasFormnovalidate,
Html\Attribute\FormControl\HasFormtarget,
Html\Attribute\FormControl\HasName,
- Html\Attribute\FormControl\Label\CanBeDisableLabel,
- Html\Attribute\FormControl\Label\HasLabel,
- Html\Attribute\FormControl\Label\HasLabelAttributes,
- Html\Attribute\FormControl\Label\HasLabelClass,
- Html\Attribute\FormControl\Label\HasLabelFor,
+ Html\Attribute\FormControl\Label\HasLabelCollection,
Html\Attribute\Global\CanBeAutofocus,
Html\Attribute\Global\CanBeHidden,
Html\Attribute\Global\HasClass,
@@ -34,6 +28,8 @@
Html\Attribute\Global\HasStyle,
Html\Attribute\Global\HasTabindex,
Html\Attribute\Global\HasTitle,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\HasTemplate,
Html\Attribute\Input\HasValue,
Html\FormControl\Label,
@@ -47,7 +43,6 @@ abstract class AbstractButton extends Element
{
use CanBeAutofocus;
use CanBeDisabled;
- use CanBeDisableLabel;
use CanBeHidden;
use CanBeReadonly;
use HasAriaDescribedBy;
@@ -63,10 +58,7 @@ abstract class AbstractButton extends Element
use HasFormnovalidate;
use HasFormtarget;
use HasId;
- use HasLabel;
- use HasLabelAttributes;
- use HasLabelClass;
- use HasLabelFor;
+ use HasLabelCollection;
use HasLang;
use HasName;
use HasPrefixCollection;
@@ -88,6 +80,8 @@ protected function loadDefaultDefinitions(): array
return [
'container()' => [true],
'id()' => [Utils::generateId('button-')],
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{label}\n{tag}\n{suffix}'],
];
}
@@ -117,13 +111,11 @@ protected function run(): string
Tag::widget()
->attributes($attributes)
->prefix($this->prefix)
- ->prefixContainer($this->prefixContainer)
- ->prefixContainerAttributes($this->prefixContainerAttributes)
- ->prefixContainerTag($this->prefixContainerTag)
+ ->prefixAttributes($this->prefixAttributes)
+ ->prefixTag($this->prefixTag)
->suffix($this->suffix)
- ->suffixContainer($this->suffixContainer)
- ->suffixContainerAttributes($this->suffixContainerAttributes)
- ->suffixContainerTag($this->suffixContainerTag)
+ ->suffixAttributes($this->suffixAttributes)
+ ->suffixTag($this->suffixTag)
->tagName('input')
->template($this->template)
->type($this->type)
diff --git a/src/FormControl/Input/Base/AbstractInput.php b/src/FormControl/Input/Base/AbstractInput.php
index 71a4e242..aae6726e 100644
--- a/src/FormControl/Input/Base/AbstractInput.php
+++ b/src/FormControl/Input/Base/AbstractInput.php
@@ -8,8 +8,6 @@
Html\Attribute\Aria\HasAriaDescribedBy,
Html\Attribute\Aria\HasAriaLabel,
Html\Attribute\Custom\HasAttributes,
- Html\Attribute\Custom\HasPrefixCollection,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\FormControl\CanBeDisabled,
Html\Attribute\FormControl\CanBeReadonly,
Html\Attribute\FormControl\HasFieldAttributes,
@@ -24,6 +22,8 @@
Html\Attribute\Global\HasStyle,
Html\Attribute\Global\HasTabindex,
Html\Attribute\Global\HasTitle,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\HasTemplate,
Html\Helper\Utils,
Html\Interop\AriaDescribedByInterface,
@@ -71,6 +71,8 @@ protected function loadDefaultDefinitions(): array
return [
'id()' => [Utils::generateId("$shortClassName-")],
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{tag}\n{suffix}'],
];
}
@@ -86,13 +88,11 @@ protected function renderInputTag(array $attributes, array $tokenValues = []): s
return Tag::widget()
->attributes($attributes)
->prefix($this->prefix)
- ->prefixContainer($this->prefixContainer)
- ->prefixContainerAttributes($this->prefixContainerAttributes)
- ->prefixContainerTag($this->prefixContainerTag)
+ ->prefixAttributes($this->prefixAttributes)
+ ->prefixTag($this->prefixTag)
->suffix($this->suffix)
- ->suffixContainer($this->suffixContainer)
- ->suffixContainerAttributes($this->suffixContainerAttributes)
- ->suffixContainerTag($this->suffixContainerTag)
+ ->suffixAttributes($this->suffixAttributes)
+ ->suffixTag($this->suffixTag)
->tagName('input')
->template($this->template)
->tokenValues($tokenValues)
diff --git a/src/FormControl/Input/Base/AbstractInputChoice.php b/src/FormControl/Input/Base/AbstractInputChoice.php
index 1c70588b..b4d44ac5 100644
--- a/src/FormControl/Input/Base/AbstractInputChoice.php
+++ b/src/FormControl/Input/Base/AbstractInputChoice.php
@@ -10,9 +10,7 @@
Html\Attribute\Custom\HasAttributes,
Html\Attribute\Custom\HasContainerCollection,
Html\Attribute\Custom\HasEnclosedByLabel,
- Html\Attribute\Custom\HasPrefixCollection,
Html\Attribute\Custom\HasSeparator,
- Html\Attribute\Custom\HasSuffixCollection,
Html\Attribute\Custom\HasUncheckedCollection,
Html\Attribute\FormControl\CanBeDisabled,
Html\Attribute\FormControl\CanBeReadonly,
@@ -21,11 +19,7 @@
Html\Attribute\FormControl\HasForm,
Html\Attribute\FormControl\HasName,
Html\Attribute\FormControl\Input\CanBeChecked,
- Html\Attribute\FormControl\Label\CanBeDisableLabel,
- Html\Attribute\FormControl\Label\HasLabel,
- Html\Attribute\FormControl\Label\HasLabelAttributes,
- Html\Attribute\FormControl\Label\HasLabelClass,
- Html\Attribute\FormControl\Label\HasLabelFor,
+ Html\Attribute\FormControl\Label\HasLabelCollection,
Html\Attribute\Global\CanBeAutofocus,
Html\Attribute\Global\CanBeHidden,
Html\Attribute\Global\HasClass,
@@ -36,6 +30,8 @@
Html\Attribute\Global\HasTabindex,
Html\Attribute\Global\HasTitle,
Html\Attribute\HasContent,
+ Html\Attribute\HasPrefixCollection,
+ Html\Attribute\HasSuffixCollection,
Html\Attribute\HasTemplate,
Html\Attribute\Input\HasValue,
Html\FormControl\Label,
@@ -66,7 +62,6 @@ abstract class AbstractInputChoice extends Element implements
use CanBeAutofocus;
use CanBeChecked;
use CanBeDisabled;
- use CanBeDisableLabel;
use CanBeHidden;
use CanBeReadonly;
use CanBeRequired;
@@ -81,10 +76,7 @@ abstract class AbstractInputChoice extends Element implements
use HasFieldAttributes;
use HasForm;
use HasId;
- use HasLabel;
- use HasLabelAttributes;
- use HasLabelClass;
- use HasLabelFor;
+ use HasLabelCollection;
use HasLang;
use HasName;
use HasPrefixCollection;
@@ -109,7 +101,9 @@ protected function loadDefaultDefinitions(): array
return [
'id()' => [Utils::generateId("$class-")],
+ 'prefixTag()' => [false],
'separator()' => [PHP_EOL],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{unchecktag}\n{tag}\n{label}\n{suffix}'],
];
}
@@ -168,21 +162,11 @@ protected function buildChoiceTag(string $type): string
private function prepareTemplate(string $tag, string $labelTag): string
{
$tokenValues = [
- '{prefix}' => $this->renderTag(
- $this->prefixContainerAttributes,
- $this->prefixContainer,
- $this->prefix,
- $this->prefixContainerTag
- ),
+ '{prefix}' => $this->renderTag($this->prefixAttributes, $this->prefix, $this->prefixTag),
'{unchecktag}' => $this->renderUncheckTag($this->getName()),
'{tag}' => $tag,
'{label}' => $labelTag,
- '{suffix}' => $this->renderTag(
- $this->suffixContainerAttributes,
- $this->suffixContainer,
- $this->suffix,
- $this->suffixContainerTag
- ),
+ '{suffix}' => $this->renderTag($this->suffixAttributes, $this->suffix, $this->suffixTag),
];
return Template::render($this->template, $tokenValues);
@@ -197,11 +181,12 @@ private function renderLabel(string ...$content): string
->render();
}
- private function renderTag(array $attributes, bool $container, string $content, string $tag): string
+ private function renderTag(array $attributes, string $content, false|string $tag): string
{
- return match ($container) {
- true => Tag::widget()->attributes($attributes)->content($content)->tagName($tag)->render(),
- false => $content,
- };
+ if ($content === '' || $tag === false) {
+ return $content;
+ }
+
+ return Tag::widget()->attributes($attributes)->content($content)->tagName($tag)->render();
}
}
diff --git a/src/FormControl/Input/File.php b/src/FormControl/Input/File.php
index 4d50641e..deb8a1c0 100644
--- a/src/FormControl/Input/File.php
+++ b/src/FormControl/Input/File.php
@@ -32,6 +32,8 @@ protected function loadDefaultDefinitions(): array
{
return [
'id()' => [Utils::generateId('file-')],
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{unchecktag}\n{tag}\n{suffix}'],
];
}
diff --git a/src/FormControl/TextArea.php b/src/FormControl/TextArea.php
index 888de7f5..630c751f 100644
--- a/src/FormControl/TextArea.php
+++ b/src/FormControl/TextArea.php
@@ -71,6 +71,8 @@ protected function loadDefaultDefinitions(): array
{
return [
'id()' => [Utils::generateId('textarea-')],
+ 'prefixTag()' => [false],
+ 'suffixTag()' => [false],
'template()' => ['{prefix}\n{tag}\n{suffix}'],
];
}
diff --git a/tests/Attribute/Custom/HasAttributesTest.php b/tests/Attribute/Custom/HasAttributesTest.php
deleted file mode 100644
index 101ddb55..00000000
--- a/tests/Attribute/Custom/HasAttributesTest.php
+++ /dev/null
@@ -1,36 +0,0 @@
-attributes(['class' => 'value']);
- $instance = $instance->attributes(['disabled' => true]);
-
- $this->assertSame(['class' => 'value', 'disabled' => true], $instance->attributes);
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasAttributes;
-
- protected array $attributes = [];
- };
-
- $this->assertNotSame($instance, $instance->attributes([]));
- }
-}
diff --git a/tests/Attribute/Custom/HasClosureTest.php b/tests/Attribute/Custom/HasClosureTest.php
deleted file mode 100644
index fefad2c2..00000000
--- a/tests/Attribute/Custom/HasClosureTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->closure(fn() => ''));
- }
-}
diff --git a/tests/Attribute/Custom/HasContainerCollectionTest.php b/tests/Attribute/Custom/HasContainerCollectionTest.php
deleted file mode 100644
index d04046db..00000000
--- a/tests/Attribute/Custom/HasContainerCollectionTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-containerAttributes['class'] ?? '';
- }
- };
-
- $this->assertEmpty($instance->getContainerClass());
-
- $instance = $instance->containerClass('class');
-
- $this->assertSame('class', $instance->getContainerClass());
-
- $instance = $instance->containerClass('class-1');
-
- $this->assertSame('class class-1', $instance->getContainerClass());
-
- $instance = $instance->containerClass('override-class', true);
-
- $this->assertSame('override-class', $instance->getContainerClass());
- }
-
- public function testException(): void
- {
- $instance = new class () {
- use HasContainerCollection;
- };
-
- $this->expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage('The container tag must be a non-empty string.');
-
- $instance->containerTag('');
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasContainerCollection;
- };
-
- $this->assertNotSame($instance, $instance->container(true));
- $this->assertNotSame($instance, $instance->containerAttributes([]));
- $this->assertNotSame($instance, $instance->containerClass(''));
- $this->assertNotSame($instance, $instance->containerTag('span'));
- }
-
- public function testRenderContainterTag(): void
- {
- $instance = new class () extends AbstractButton {
- public function run(): string
- {
- return $this->renderContainerTag(null, 'content');
- }
- };
-
- Assert::equalsWithoutLE(
- <<
- content
-
- HTML,
- $instance->container(true)->run()
- );
- }
-}
diff --git a/tests/Attribute/Custom/HasContainerMenuCollectionTest.php b/tests/Attribute/Custom/HasContainerMenuCollectionTest.php
deleted file mode 100644
index 5f1d33a9..00000000
--- a/tests/Attribute/Custom/HasContainerMenuCollectionTest.php
+++ /dev/null
@@ -1,62 +0,0 @@
-containerMenuAttributes['class'] ?? '';
- }
- };
-
- $this->assertEmpty($instance->getContainerMenuClass());
-
- $instance = $instance->containerMenuClass('class');
-
- $this->assertSame('class', $instance->getContainerMenuClass());
-
- $instance = $instance->containerMenuClass('class-1');
-
- $this->assertSame('class class-1', $instance->getContainerMenuClass());
-
- $instance = $instance->containerMenuClass('override-class', true);
-
- $this->assertSame('override-class', $instance->getContainerMenuClass());
- }
-
- public function testException(): void
- {
- $instance = new class () {
- use HasContainerMenuCollection;
- };
-
- $this->expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage('The container menu tag must be a non-empty string.');
-
- $instance->containerMenuTag('');
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasContainerMenuCollection;
- };
-
- $this->assertNotSame($instance, $instance->containerMenu(true));
- $this->assertNotSame($instance, $instance->containerMenuAttributes([]));
- $this->assertNotSame($instance, $instance->containerMenuClass(''));
- $this->assertNotSame($instance, $instance->containerMenuTag('span'));
- }
-}
diff --git a/tests/Attribute/Custom/HasContainerPrefixTest.php b/tests/Attribute/Custom/HasContainerPrefixTest.php
deleted file mode 100644
index a5577a2d..00000000
--- a/tests/Attribute/Custom/HasContainerPrefixTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->containerPrefix(''));
- }
-}
diff --git a/tests/Attribute/Custom/HasContainerSuffixTest.php b/tests/Attribute/Custom/HasContainerSuffixTest.php
deleted file mode 100644
index 51e74c8e..00000000
--- a/tests/Attribute/Custom/HasContainerSuffixTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->containerSuffix(''));
- }
-}
diff --git a/tests/Attribute/Custom/HasContainerTemplateTest.php b/tests/Attribute/Custom/HasContainerTemplateTest.php
deleted file mode 100644
index 95d8bf11..00000000
--- a/tests/Attribute/Custom/HasContainerTemplateTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->containerTemplate(''));
- }
-}
diff --git a/tests/Attribute/Custom/HasContentAttributeTest.php b/tests/Attribute/Custom/HasContentAttributeTest.php
deleted file mode 100644
index a56c5300..00000000
--- a/tests/Attribute/Custom/HasContentAttributeTest.php
+++ /dev/null
@@ -1,22 +0,0 @@
-assertNotSame($instance, $instance->content(''));
- }
-}
diff --git a/tests/Attribute/Custom/HasCsrfTest.php b/tests/Attribute/Custom/HasCsrfTest.php
deleted file mode 100644
index bc23b058..00000000
--- a/tests/Attribute/Custom/HasCsrfTest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-assertNotSame($instance, $instance->csrf('', ''));
- }
-
- public function testStringable(): void
- {
- $instance = new class () {
- use HasCsrf;
-
- public array $attributes = [];
-
- public function getCsrfToken(): string
- {
- return $this->csrfToken;
- }
- };
-
- $instance = $instance->csrf(
- new class () implements Stringable {
- public function __toString(): string
- {
- return 'csrf_token';
- }
- },
- );
-
- $this->assertSame('csrf_token', $instance->getCsrfToken());
- }
-
- public function testValue(): void
- {
- $instance = new class () {
- use HasCsrf;
-
- public array $attributes = [];
-
- public function getCsrfName(): string
- {
- return $this->csrfName;
- }
-
- public function getCsrfToken(): string
- {
- return $this->csrfToken;
- }
- };
-
- $this->assertSame('_csrf', $instance->getCsrfName());
- $this->assertEmpty($instance->getCsrfToken());
-
- $instance = $instance->csrf('csrf_token', 'csrf_name');
-
- $this->assertSame('csrf_name', $instance->getCsrfName());
- $this->assertSame('csrf_token', $instance->getCsrfToken());
- }
-}
diff --git a/tests/Attribute/Custom/HasEnclosedByLabelTest.php b/tests/Attribute/Custom/HasEnclosedByLabelTest.php
deleted file mode 100644
index df0f395f..00000000
--- a/tests/Attribute/Custom/HasEnclosedByLabelTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->enclosedByLabel(true));
- }
-}
diff --git a/tests/Attribute/Custom/HasLabelItemClassTest.php b/tests/Attribute/Custom/HasLabelItemClassTest.php
deleted file mode 100644
index 0f9beff0..00000000
--- a/tests/Attribute/Custom/HasLabelItemClassTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->labelItemClass(''));
- }
-}
diff --git a/tests/Attribute/Custom/HasPrefixCollectionTest.php b/tests/Attribute/Custom/HasPrefixCollectionTest.php
deleted file mode 100644
index 80293fd4..00000000
--- a/tests/Attribute/Custom/HasPrefixCollectionTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-prefixContainerAttributes['class'] ?? '';
- }
- };
-
- $this->assertEmpty($instance->getPrefixContainerClass());
-
- $instance = $instance->prefixContainerClass('class');
-
- $this->assertSame('class', $instance->getPrefixContainerClass());
-
- $instance = $instance->prefixContainerClass('class-1');
-
- $this->assertSame('class class-1', $instance->getPrefixContainerClass());
-
- $instance = $instance->prefixContainerClass('override-class', true);
-
- $this->assertSame('override-class', $instance->getPrefixContainerClass());
- }
-
- public function testContainerTagException(): void
- {
- $instance = new class () {
- use HasPrefixCollection;
- };
-
- $this->expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage('The prefix container tag must be a non-empty string.');
-
- $instance->prefixContainerTag('');
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasPrefixCollection;
- };
-
- $this->assertNotSame($instance, $instance->prefix(''));
- $this->assertNotSame($instance, $instance->prefixContainer(false));
- $this->assertNotSame($instance, $instance->prefixContainerAttributes([]));
- $this->assertNotSame($instance, $instance->prefixContainerClass(''));
- $this->assertNotSame($instance, $instance->prefixContainerTag('span'));
- }
-
- public function testRenderWithXSS(): void
- {
- $instance = new class () {
- use HasPrefixCollection;
-
- public function getPrefix(): string
- {
- return $this->prefix;
- }
- };
-
- $instance = $instance->prefix(Span::widget(), "");
-
- $this->assertSame('', $instance->getPrefix());
- }
-}
diff --git a/tests/Attribute/Custom/HasPrefixItemsTest.php b/tests/Attribute/Custom/HasPrefixItemsTest.php
deleted file mode 100644
index 4bf89e81..00000000
--- a/tests/Attribute/Custom/HasPrefixItemsTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-assertNotSame($instance, $instance->prefixItems(''));
- }
-
- public function testRender(): void
- {
- $instance = new class () {
- use HasPrefixItems;
-
- public function getPrefixItems(): string
- {
- return $this->prefixItems;
- }
- };
-
- $instance = $instance->prefixItems(Span::widget(), 'prefix');
-
- $this->assertSame('prefix', $instance->getPrefixItems());
- }
-
- public function testRenderWithXSS(): void
- {
- $instance = new class () {
- use HasPrefixItems;
-
- public function getPrefixItems(): string
- {
- return $this->prefixItems;
- }
- };
-
- $instance = $instance->prefixItems(Span::widget(), "");
-
- $this->assertSame('', $instance->getPrefixItems());
- }
-}
diff --git a/tests/Attribute/Custom/HasSeparatorTest.php b/tests/Attribute/Custom/HasSeparatorTest.php
deleted file mode 100644
index 03e4750f..00000000
--- a/tests/Attribute/Custom/HasSeparatorTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->separator('foo'));
- }
-}
diff --git a/tests/Attribute/Custom/HasSuffixCollectionTest.php b/tests/Attribute/Custom/HasSuffixCollectionTest.php
deleted file mode 100644
index 5f72dcd1..00000000
--- a/tests/Attribute/Custom/HasSuffixCollectionTest.php
+++ /dev/null
@@ -1,79 +0,0 @@
-suffixContainerAttributes['class'] ?? '';
- }
- };
-
- $this->assertEmpty($instance->getSuffixContainerClass());
-
- $instance = $instance->suffixContainerClass('class');
-
- $this->assertSame('class', $instance->getSuffixContainerClass());
-
- $instance = $instance->suffixContainerClass('class-1');
-
- $this->assertSame('class class-1', $instance->getSuffixContainerClass());
-
- $instance = $instance->suffixContainerClass('override-class', true);
-
- $this->assertSame('override-class', $instance->getSuffixContainerClass());
- }
-
- public function testContainerTagException(): void
- {
- $instance = new class () {
- use HasSuffixCollection;
- };
-
- $this->expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage('The suffix container tag must be a non-empty string.');
-
- $instance->suffixContainerTag('');
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasSuffixCollection;
- };
-
- $this->assertNotSame($instance, $instance->suffix(''));
- $this->assertNotSame($instance, $instance->suffixContainer(false));
- $this->assertNotSame($instance, $instance->suffixContainerAttributes([]));
- $this->assertNotSame($instance, $instance->suffixContainerClass(''));
- $this->assertNotSame($instance, $instance->suffixContainerTag('span'));
- }
-
- public function testRenderWithXSS(): void
- {
- $instance = new class () {
- use HasSuffixCollection;
-
- public function getSuffix(): string
- {
- return $this->suffix;
- }
- };
-
- $instance = $instance->suffix("", Span::widget());
-
- $this->assertSame('', $instance->getSuffix());
- }
-}
diff --git a/tests/Attribute/Custom/HasSuffixItemsTest.php b/tests/Attribute/Custom/HasSuffixItemsTest.php
deleted file mode 100644
index 125f6ad7..00000000
--- a/tests/Attribute/Custom/HasSuffixItemsTest.php
+++ /dev/null
@@ -1,52 +0,0 @@
-assertNotSame($instance, $instance->suffixItems(''));
- }
-
- public function testRender(): void
- {
- $instance = new class () {
- use HasSuffixItems;
-
- public function getSuffixItems(): string
- {
- return $this->suffixItems;
- }
- };
-
- $instance = $instance->suffixItems('suffix', Span::widget());
-
- $this->assertSame('suffix', $instance->getSuffixItems());
- }
-
- public function testRenderWithXSS(): void
- {
- $instance = new class () {
- use HasSuffixItems;
-
- public function getSuffixItems(): string
- {
- return $this->suffixItems;
- }
- };
-
- $instance = $instance->suffixItems("", Span::widget());
-
- $this->assertSame('', $instance->getSuffixItems());
- }
-}
diff --git a/tests/Attribute/Custom/HasTagNameTest.php b/tests/Attribute/Custom/HasTagNameTest.php
deleted file mode 100644
index b40d6d4c..00000000
--- a/tests/Attribute/Custom/HasTagNameTest.php
+++ /dev/null
@@ -1,37 +0,0 @@
-expectException(InvalidArgumentException::class);
- $this->expectExceptionMessage('class widget must have a tag name.');
-
- $instance->tagName('');
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasTagName;
-
- protected string $tagName = '';
- };
-
- $this->assertNotSame($instance, $instance->tagName('div'));
- }
-}
diff --git a/tests/Attribute/Custom/HasTokenValuesTest.php b/tests/Attribute/Custom/HasTokenValuesTest.php
deleted file mode 100644
index b60a90b3..00000000
--- a/tests/Attribute/Custom/HasTokenValuesTest.php
+++ /dev/null
@@ -1,20 +0,0 @@
-assertNotSame($instance, $instance->tokenValues([]));
- }
-}
diff --git a/tests/Attribute/Custom/HasUnchekedCollectionTest.php b/tests/Attribute/Custom/HasUnchekedCollectionTest.php
deleted file mode 100644
index ab3a76fa..00000000
--- a/tests/Attribute/Custom/HasUnchekedCollectionTest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-uncheckAttributes;
- }
- };
-
- $instance = $instance->uncheckAttributes(['class' => 'value']);
- $instance = $instance->uncheckAttributes(['disabled' => true]);
-
- $this->assertSame(['class' => 'value', 'disabled' => true], $instance->getUncheckAttributes());
- }
-
- public function testClass(): void
- {
- $instance = new class () {
- use HasUncheckedCollection;
-
- public function getClass(): string
- {
- return $this->uncheckAttributes['class'] ?? '';
- }
- };
-
- $this->assertEmpty($instance->getClass());
-
- $instance = $instance->uncheckClass('class');
-
- $this->assertSame('class', $instance->getClass());
-
- $instance = $instance->uncheckClass('class-1');
-
- $this->assertSame('class class-1', $instance->getClass());
-
- $instance = $instance->uncheckClass('override-class', true);
-
- $this->assertSame('override-class', $instance->getClass());
- }
-
- public function testImmutability(): void
- {
- $instance = new class () {
- use HasUncheckedCollection;
- };
-
- $this->assertNotSame($instance, $instance->uncheckAttributes([]));
- $this->assertNotSame($instance, $instance->uncheckClass(''));
- $this->assertNotSame($instance, $instance->uncheckValue(null));
- }
-}
diff --git a/tests/FormControl/Button/CustomMethodTest.php b/tests/FormControl/Button/CustomMethodTest.php
index 8a090e5f..8d970a1d 100644
--- a/tests/FormControl/Button/CustomMethodTest.php
+++ b/tests/FormControl/Button/CustomMethodTest.php
@@ -73,20 +73,7 @@ public function testPrefix(): void
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- value
-
-
- HTML,
- Button::widget()->id('button-658716145f1d9')->prefix('value')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<id('button-658716145f1d9')
->prefix('value')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<id('button-658716145f1d9')
->prefix('value')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<value
HTML,
- Button::widget()
- ->id('button-658716145f1d9')
- ->prefix('value')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Button::widget()->id('button-658716145f1d9')->prefix('value')->prefixTag('span')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Button::widget()->id('button-658716145f1d9')->render()
+ Button::widget()->id('button-658716145f1d9')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- value
HTML,
- Button::widget()->id('button-658716145f1d9')->suffix('value')->render()
+ Button::widget()->id('button-658716145f1d9')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
value
-
HTML,
- Button::widget()->id('button-658716145f1d9')->suffix('value')->suffixContainer(true)->render()
+ Button::widget()->id('button-658716145f1d9')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<id('button-658716145f1d9')
->suffix('value')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<id('button-658716145f1d9')
->suffix('value')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
value
HTML,
- Button::widget()
- ->id('button-658716145f1d9')
- ->suffix('value')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Button::widget()->id('button-658716145f1d9')->suffix('value')->suffixTag('span')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Button::widget()->id('button-658716145f1d9')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Button/CustomMethodTest.php b/tests/FormControl/Input/Button/CustomMethodTest.php
index 2d5912da..d95eb0a2 100644
--- a/tests/FormControl/Input/Button/CustomMethodTest.php
+++ b/tests/FormControl/Input/Button/CustomMethodTest.php
@@ -71,162 +71,169 @@ public function testPrefix(): void
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Button::widget()->id('button-6582f2d099e8b')->prefix('Prefix')->render()
+ Button::widget()->id('button-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- Prefix
+
+ value
HTML,
- Button::widget()->id('button-6582f2d099e8b')->prefix('Prefix')->prefixContainer(true)->render()
+ Button::widget()
+ ->id('button-6582f2d099e8b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
Button::widget()
->id('button-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Button::widget()
- ->id('button-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Button::widget()->id('button-6582f2d099e8b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
+ value
HTML,
- Button::widget()->id('button-6582f2d099e8b')->render()
+ Button::widget()->id('button-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
HTML,
- Button::widget()->id('button-6582f2d099e8b')->suffix('Suffix')->render()
+ Button::widget()->id('button-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- Suffix
-
+ value
HTML,
- Button::widget()->id('button-6582f2d099e8b')->suffix('Suffix')->suffixContainer(true)->render()
+ Button::widget()->id('button-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
Button::widget()
->id('button-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
Button::widget()
->id('button-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
- Button::widget()
- ->id('button-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Button::widget()->id('button-6582f2d099e8b')->suffix('value')->suffixTag('span')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+
+ value
+
+ HTML,
+ Button::widget()->id('button-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Checkbox/CustomMethodTest.php b/tests/FormControl/Input/Checkbox/CustomMethodTest.php
index 4a4272db..bdcf0e7c 100644
--- a/tests/FormControl/Input/Checkbox/CustomMethodTest.php
+++ b/tests/FormControl/Input/Checkbox/CustomMethodTest.php
@@ -96,75 +96,68 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Checkbox::widget()->id('checkbox-6582f2d099e8b')->prefix('prefix')->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- Checkbox::widget()->id('checkbox-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
+ Checkbox::widget()
+ ->id('checkbox-6582f2d099e8b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Checkbox::widget()
->id('checkbox-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- Checkbox::widget()
- ->id('checkbox-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- Checkbox::widget()
- ->id('checkbox-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
@@ -183,74 +176,67 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Checkbox::widget()->id('checkbox-6582f2d099e8b')->suffix('suffix')->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- Checkbox::widget()->id('checkbox-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Checkbox::widget()
+ ->id('checkbox-6582f2d099e8b')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Checkbox::widget()
->id('checkbox-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Checkbox::widget()
- ->id('checkbox-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Checkbox::widget()
- ->id('checkbox-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Checkbox::widget()->id('checkbox-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Color/CustomMethodTest.php b/tests/FormControl/Input/Color/CustomMethodTest.php
index 532a5e47..db65d797 100644
--- a/tests/FormControl/Input/Color/CustomMethodTest.php
+++ b/tests/FormControl/Input/Color/CustomMethodTest.php
@@ -26,128 +26,108 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Color::widget()->id('color-6582f2d099e8b')->prefix('prefix')->render()
+ Color::widget()->id('color-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Color::widget()->id('color-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Color::widget()
->id('color-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Color::widget()
->id('color-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Color::widget()
- ->id('color-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Color::widget()->id('color-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Color::widget()->id('color-6582f2d099e8b')->render()
+ Color::widget()->id('color-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Color::widget()->id('color-6582f2d099e8b')->suffix('suffix')->render()
+ Color::widget()->id('color-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Color::widget()->id('color-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Color::widget()->id('color-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
HTML,
Color::widget()
->id('color-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Color::widget()
- ->id('color-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Color::widget()->id('color-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Color::widget()->id('color-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Date/CustomMethodTest.php b/tests/FormControl/Input/Date/CustomMethodTest.php
index a196dd3b..6ff50e4a 100644
--- a/tests/FormControl/Input/Date/CustomMethodTest.php
+++ b/tests/FormControl/Input/Date/CustomMethodTest.php
@@ -26,165 +26,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Date::widget()->id('date-6582f2d099e8b')->prefix('prefix')->render()
+ Date::widget()->id('date-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Date::widget()->id('date-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Date::widget()
->id('date-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Date::widget()
- ->id('date-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Date::widget()->id('date-6582f2d099e8b')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Date::widget()
- ->id('date-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Date::widget()->id('date-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Date::widget()->id('date-6582f2d099e8b')->render()
+ Date::widget()->id('date-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Date::widget()->id('date-6582f2d099e8b')->suffix('suffix')->render()
+ Date::widget()->id('date-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Date::widget()->id('date-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Date::widget()->id('date-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Date::widget()
->id('date-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Date::widget()
- ->id('date-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Date::widget()->id('date-6582f2d099e8b')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Date::widget()
- ->id('date-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Date::widget()->id('date-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Date::widget()->id('date-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Datetime/CustomMethodTest.php b/tests/FormControl/Input/Datetime/CustomMethodTest.php
index f1e26b72..544e7ce3 100644
--- a/tests/FormControl/Input/Datetime/CustomMethodTest.php
+++ b/tests/FormControl/Input/Datetime/CustomMethodTest.php
@@ -26,165 +26,151 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Datetime::widget()->id('datetime-6582f2d099e8b')->prefix('prefix')->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Datetime::widget()->id('datetime-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Datetime::widget()
->id('datetime-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Datetime::widget()
->id('datetime-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Datetime::widget()
- ->id('datetime-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Datetime::widget()->id('datetime-6582f2d099e8b')->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Datetime::widget()->id('datetime-6582f2d099e8b')->suffix('suffix')->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Datetime::widget()->id('datetime-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Datetime::widget()
->id('datetime-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Datetime::widget()
->id('datetime-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Datetime::widget()
- ->id('datetime-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Datetime::widget()->id('datetime-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Datetime::widget()->id('datetime-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/DatetimeLocal/CustomMethodTest.php b/tests/FormControl/Input/DatetimeLocal/CustomMethodTest.php
index fd930c17..fe943db1 100644
--- a/tests/FormControl/Input/DatetimeLocal/CustomMethodTest.php
+++ b/tests/FormControl/Input/DatetimeLocal/CustomMethodTest.php
@@ -26,83 +26,70 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->prefix('prefix')->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
DatetimeLocal::widget()
->id('datetime-local-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
DatetimeLocal::widget()
->id('datetime-local-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes([
- 'class' => 'value',
- ])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+
+ value
+
HTML,
- DatetimeLocal::widget()
- ->id('datetime-local-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- DatetimeLocal::widget()
- ->id('datetime-local-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
@@ -121,82 +108,69 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->suffix('suffix')->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
DatetimeLocal::widget()
->id('datetime-local-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value',])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
DatetimeLocal::widget()
->id('datetime-local-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes([
- 'class' => 'value',
- ])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+
+ value
+
HTML,
- DatetimeLocal::widget()
- ->id('datetime-local-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- DatetimeLocal::widget()
- ->id('datetime-local-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ DatetimeLocal::widget()->id('datetime-local-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Email/CustomMethodTest.php b/tests/FormControl/Input/Email/CustomMethodTest.php
index 679734f3..aaa51668 100644
--- a/tests/FormControl/Input/Email/CustomMethodTest.php
+++ b/tests/FormControl/Input/Email/CustomMethodTest.php
@@ -26,75 +26,68 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Email::widget()->id('email-65a15e0439570')->prefix('prefix')->render()
+ Email::widget()->id('email-65a15e0439570')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- Email::widget()->id('email-65a15e0439570')->prefix('prefix')->prefixContainer(true)->render()
+ Email::widget()
+ ->id('email-65a15e0439570')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Email::widget()
->id('email-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- Email::widget()
- ->id('email-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Email::widget()->id('email-65a15e0439570')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- Email::widget()
- ->id('email-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Email::widget()->id('email-65a15e0439570')->prefix('value')->prefixTag(false)->render()
);
}
@@ -113,74 +106,68 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Email::widget()->id('email-65a15e0439570')->suffix('suffix')->render()
+ Email::widget()->id('email-65a15e0439570')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- Email::widget()->id('email-65a15e0439570')->suffix('suffix')->suffixContainer(true)->render()
+ Email::widget()
+ ->id('email-65a15e0439570')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Email::widget()
->id('email-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Email::widget()
- ->id('email-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Email::widget()->id('email-65a15e0439570')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Email::widget()
- ->id('email-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Email::widget()->id('email-65a15e0439570')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/File/CustomMethodTest.php b/tests/FormControl/Input/File/CustomMethodTest.php
index 02cd1e71..0f032823 100644
--- a/tests/FormControl/Input/File/CustomMethodTest.php
+++ b/tests/FormControl/Input/File/CustomMethodTest.php
@@ -36,75 +36,63 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- File::widget()->id('file-65a15e0439570')->prefix('prefix')->render()
+ File::widget()->id('file-65a15e0439570')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- File::widget()->id('file-65a15e0439570')->prefix('prefix')->prefixContainer(true)->render()
+ File::widget()
+ ->id('file-65a15e0439570')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ File::widget()->id('file-65a15e0439570')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ File::widget()->id('file-65a15e0439570')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ File::widget()->id('file-65a15e0439570')->prefix('value')->prefixTag(false)->render()
);
}
@@ -123,74 +111,62 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- File::widget()->id('file-65a15e0439570')->suffix('suffix')->render()
+ File::widget()->id('file-65a15e0439570')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- File::widget()->id('file-65a15e0439570')->suffix('suffix')->suffixContainer(true)->render()
+ File::widget()
+ ->id('file-65a15e0439570')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ File::widget()->id('file-65a15e0439570')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ File::widget()->id('file-65a15e0439570')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- File::widget()
- ->id('file-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ File::widget()->id('file-65a15e0439570')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Image/CustomMethodTest.php b/tests/FormControl/Input/Image/CustomMethodTest.php
index 905c9622..c6c4cab9 100644
--- a/tests/FormControl/Input/Image/CustomMethodTest.php
+++ b/tests/FormControl/Input/Image/CustomMethodTest.php
@@ -26,72 +26,68 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Image::widget()->id('image-65a15e0439570')->prefix('prefix')->render()
+ Image::widget()->id('image-65a15e0439570')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')->prefix('prefix')->prefixContainer(true)->render()
+ Image::widget()
+ ->id('image-65a15e0439570')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ Image::widget()
+ ->id('image-65a15e0439570')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Image::widget()->id('image-65a15e0439570')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Image::widget()->id('image-65a15e0439570')->prefix('value')->prefixTag(false)->render()
);
}
@@ -110,71 +106,67 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')->suffix('suffix')->render()
+ Image::widget()->id('image-65a15e0439570')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')->suffix('suffix')->suffixContainer(true)->render()
+ Image::widget()
+ ->id('image-65a15e0439570')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ Image::widget()
+ ->id('image-65a15e0439570')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Image::widget()->id('image-65a15e0439570')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalsevalue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Image::widget()->id('image-65a15e0439570')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Image::widget()->id('image-65a15e0439570')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Month/CustomMethodTest.php b/tests/FormControl/Input/Month/CustomMethodTest.php
index 9ecfd1c1..2d4e0b7a 100644
--- a/tests/FormControl/Input/Month/CustomMethodTest.php
+++ b/tests/FormControl/Input/Month/CustomMethodTest.php
@@ -26,165 +26,151 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Month::widget()->id('month-6582f2d099e8b')->prefix('prefix')->render()
+ Month::widget()->id('month-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Month::widget()->id('month-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Month::widget()
->id('month-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Month::widget()
->id('month-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Month::widget()
- ->id('month-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Month::widget()->id('month-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Month::widget()->id('month-6582f2d099e8b')->render()
+ Month::widget()->id('month-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Month::widget()->id('month-6582f2d099e8b')->suffix('suffix')->render()
+ Month::widget()->id('month-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Month::widget()->id('month-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Month::widget()->id('month-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Month::widget()
->id('month-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Month::widget()
->id('month-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Month::widget()
- ->id('month-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Month::widget()->id('month-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ suffix
+ HTML,
+ Month::widget()->id('month-6582f2d099e8b')->suffix('suffix')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Number/CustomMethodTest.php b/tests/FormControl/Input/Number/CustomMethodTest.php
index 3136812d..cb84ea4c 100644
--- a/tests/FormControl/Input/Number/CustomMethodTest.php
+++ b/tests/FormControl/Input/Number/CustomMethodTest.php
@@ -26,165 +26,151 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Number::widget()->id('number-6582f2d099e8b')->prefix('prefix')->render()
+ Number::widget()->id('number-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Number::widget()->id('number-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Number::widget()
->id('number-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Number::widget()
->id('number-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Number::widget()
- ->id('number-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Number::widget()->id('number-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Number::widget()->id('number-6582f2d099e8b')->render()
+ Number::widget()->id('number-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Number::widget()->id('number-6582f2d099e8b')->suffix('suffix')->render()
+ Number::widget()->id('number-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Number::widget()->id('number-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Number::widget()->id('number-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Number::widget()
->id('number-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Number::widget()
->id('number-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Number::widget()
- ->id('number-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Number::widget()->id('number-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Number::widget()->id('number-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Password/CustomMethodTest.php b/tests/FormControl/Input/Password/CustomMethodTest.php
index 94809830..19a869af 100644
--- a/tests/FormControl/Input/Password/CustomMethodTest.php
+++ b/tests/FormControl/Input/Password/CustomMethodTest.php
@@ -26,165 +26,151 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Password::widget()->id('password-6582f2d099e8b')->prefix('prefix')->render()
+ Password::widget()->id('password-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Password::widget()->id('password-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Password::widget()
->id('password-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Password::widget()
->id('password-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Password::widget()
- ->id('password-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Password::widget()->id('password-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Password::widget()->id('password-6582f2d099e8b')->render()
+ Password::widget()->id('password-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Password::widget()->id('password-6582f2d099e8b')->suffix('suffix')->render()
+ Password::widget()->id('password-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Password::widget()->id('password-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Password::widget()->id('password-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Password::widget()
->id('password-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Password::widget()
->id('password-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Password::widget()
- ->id('password-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Password::widget()->id('password-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Password::widget()->id('password-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Radio/CustomMethodTest.php b/tests/FormControl/Input/Radio/CustomMethodTest.php
index fd38a174..223daa7e 100644
--- a/tests/FormControl/Input/Radio/CustomMethodTest.php
+++ b/tests/FormControl/Input/Radio/CustomMethodTest.php
@@ -93,75 +93,69 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Radio::widget()->id('radio-6582f2d099e8b')->prefix('prefix')->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- Radio::widget()->id('radio-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
+ Radio::widget()
+ ->id('radio-6582f2d099e8b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Radio::widget()
->id('radio-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- Radio::widget()
- ->id('radio-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- Radio::widget()
- ->id('radio-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
@@ -180,74 +174,67 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Radio::widget()->id('radio-6582f2d099e8b')->suffix('suffix')->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- Radio::widget()->id('radio-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Radio::widget()
+ ->id('radio-6582f2d099e8b')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Radio::widget()
->id('radio-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Radio::widget()
- ->id('radio-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Radio::widget()
- ->id('radio-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Radio::widget()->id('radio-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Range/CustomMethodTest.php b/tests/FormControl/Input/Range/CustomMethodTest.php
index be51b5c8..4f2a61bc 100644
--- a/tests/FormControl/Input/Range/CustomMethodTest.php
+++ b/tests/FormControl/Input/Range/CustomMethodTest.php
@@ -26,165 +26,151 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Range::widget()->id('range-6582f2d099e8b')->prefix('prefix')->render()
+ Range::widget()->id('range-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Range::widget()->id('range-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Range::widget()
->id('range-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Range::widget()
->id('range-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Range::widget()
- ->id('range-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Range::widget()->id('range-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Range::widget()->id('range-6582f2d099e8b')->render()
+ Range::widget()->id('range-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Range::widget()->id('range-6582f2d099e8b')->suffix('suffix')->render()
+ Range::widget()->id('range-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Range::widget()->id('range-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Range::widget()->id('range-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Range::widget()
->id('range-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Range::widget()
->id('range-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Range::widget()
- ->id('range-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Range::widget()->id('range-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Range::widget()->id('range-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Reset/CustomMethodTest.php b/tests/FormControl/Input/Reset/CustomMethodTest.php
index e28a9a8f..48c78a5d 100644
--- a/tests/FormControl/Input/Reset/CustomMethodTest.php
+++ b/tests/FormControl/Input/Reset/CustomMethodTest.php
@@ -75,166 +75,168 @@ public function testPrefix(): void
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Reset::widget()->id('reset-6582f2d099e8b')->prefix('Prefix')->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- Prefix
+
+ value
HTML,
- Reset::widget()->id('reset-6582f2d099e8b')->prefix('Prefix')->prefixContainer(true)->render()
+ Reset::widget()
+ ->id('reset-6582f2d099e8b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
Reset::widget()
->id('reset-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes([
- 'class' => 'value',
- ])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Reset::widget()
- ->id('reset-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
+ value
HTML,
- Reset::widget()->id('reset-6582f2d099e8b')->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
HTML,
- Reset::widget()->id('reset-6582f2d099e8b')->suffix('Suffix')->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- Suffix
-
+ value
HTML,
- Reset::widget()->id('reset-6582f2d099e8b')->suffix('Suffix')->suffixContainer(true)->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
Reset::widget()
->id('reset-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes([
- 'class' => 'value',
- ])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
Reset::widget()
->id('reset-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
- Reset::widget()
- ->id('reset-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Reset::widget()->id('reset-6582f2d099e8b')->suffix('value')->suffixTag('span')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+
+ value
+
+ HTML,
+ Reset::widget()->id('reset-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Search/CustomMethodTest.php b/tests/FormControl/Input/Search/CustomMethodTest.php
index 1335c0cb..2b2592e1 100644
--- a/tests/FormControl/Input/Search/CustomMethodTest.php
+++ b/tests/FormControl/Input/Search/CustomMethodTest.php
@@ -26,77 +26,59 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Search::widget()->id('search-6582f2d099e8b')->prefix('prefix')->render()
+ Search::widget()->id('search-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Search::widget()->id('search-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Search::widget()
->id('search-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Search::widget()
->id('search-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Search::widget()
- ->id('search-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Search::widget()->id('search-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
@@ -115,76 +97,69 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Search::widget()->id('search-6582f2d099e8b')->suffix('suffix')->render()
+ Search::widget()->id('search-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- Search::widget()->id('search-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Search::widget()
+ ->id('search-6582f2d099e8b')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Search::widget()
->id('search-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+
+ value
+
HTML,
- Search::widget()
- ->id('search-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Search::widget()->id('search-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Search::widget()
- ->id('search-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Search::widget()->id('search-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Submit/CustomMethodTest.php b/tests/FormControl/Input/Submit/CustomMethodTest.php
index 03879030..ff160a25 100644
--- a/tests/FormControl/Input/Submit/CustomMethodTest.php
+++ b/tests/FormControl/Input/Submit/CustomMethodTest.php
@@ -75,66 +75,57 @@ public function testPrefix(): void
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Submit::widget()->id('submit-6582f2d099e8b')->prefix('Prefix')->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- Prefix
+
+ value
HTML,
- Submit::widget()->id('submit-6582f2d099e8b')->prefix('Prefix')->prefixContainer(true)->render()
+ Submit::widget()
+ ->id('submit-6582f2d099e8b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- Prefix
-
+ value
HTML,
- Submit::widget()
- ->id('submit-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes([
- 'class' => 'value',
- ])
- ->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- Prefix
+ value
HTML,
- Submit::widget()
- ->id('submit-6582f2d099e8b')
- ->prefix('Prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('span')
- ->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
@@ -156,85 +147,76 @@ public function testSuffix(): void
<<
- Suffix
+ value
HTML,
- Submit::widget()->id('submit-6582f2d099e8b')->suffix('Suffix')->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- Suffix
+
+ value
HTML,
- Submit::widget()->id('submit-6582f2d099e8b')->suffix('Suffix')->suffixContainer(true)->render()
+ Submit::widget()
+ ->id('submit-6582f2d099e8b')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
Submit::widget()
->id('submit-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes([
- 'class' => 'value',
- ])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- Suffix
-
+ value
HTML,
- Submit::widget()
- ->id('submit-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- Suffix
+ value
HTML,
- Submit::widget()
- ->id('submit-6582f2d099e8b')
- ->suffix('Suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('span')
- ->render()
+ Submit::widget()->id('submit-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Text/CustomMethodTest.php b/tests/FormControl/Input/Text/CustomMethodTest.php
index b9a4ee20..95350ebc 100644
--- a/tests/FormControl/Input/Text/CustomMethodTest.php
+++ b/tests/FormControl/Input/Text/CustomMethodTest.php
@@ -26,165 +26,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Text::widget()->id('text-6582f2d099e8b')->prefix('prefix')->render()
+ Text::widget()->id('text-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Text::widget()->id('text-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Text::widget()
->id('text-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Text::widget()
- ->id('text-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Text::widget()->id('text-6582f2d099e8b')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Text::widget()
- ->id('text-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Text::widget()->id('text-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Text::widget()->id('text-6582f2d099e8b')->render()
+ Text::widget()->id('text-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Text::widget()->id('text-6582f2d099e8b')->suffix('suffix')->render()
+ Text::widget()->id('text-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Text::widget()->id('text-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Text::widget()->id('text-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Text::widget()
->id('text-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Text::widget()
- ->id('text-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Text::widget()->id('text-6582f2d099e8b')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Text::widget()
- ->id('text-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Text::widget()->id('text-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Text::widget()->id('text-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Time/CustomMethodTest.php b/tests/FormControl/Input/Time/CustomMethodTest.php
index 51bb24f7..99257de2 100644
--- a/tests/FormControl/Input/Time/CustomMethodTest.php
+++ b/tests/FormControl/Input/Time/CustomMethodTest.php
@@ -26,165 +26,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Time::widget()->id('time-6582f2d099e8b')->prefix('prefix')->render()
+ Time::widget()->id('time-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Time::widget()->id('time-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Time::widget()
->id('time-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Time::widget()
- ->id('time-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Time::widget()->id('time-6582f2d099e8b')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Time::widget()
- ->id('time-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Time::widget()->id('time-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Time::widget()->id('time-6582f2d099e8b')->render()
+ Time::widget()->id('time-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Time::widget()->id('time-6582f2d099e8b')->suffix('suffix')->render()
+ Time::widget()->id('time-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Time::widget()->id('time-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Time::widget()->id('time-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Time::widget()
->id('time-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Time::widget()
- ->id('time-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Time::widget()->id('time-6582f2d099e8b')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixrTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Time::widget()
- ->id('time-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Time::widget()->id('time-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Time::widget()->id('time-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Url/CustomMethodTest.php b/tests/FormControl/Input/Url/CustomMethodTest.php
index 0c0aa878..8da40767 100644
--- a/tests/FormControl/Input/Url/CustomMethodTest.php
+++ b/tests/FormControl/Input/Url/CustomMethodTest.php
@@ -26,165 +26,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Url::widget()->id('url-6582f2d099e8b')->prefix('prefix')->render()
+ Url::widget()->id('url-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Url::widget()->id('url-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Url::widget()
->id('url-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Url::widget()
- ->id('url-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Url::widget()->id('url-6582f2d099e8b')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Url::widget()
- ->id('url-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Url::widget()->id('url-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Url::widget()->id('url-6582f2d099e8b')->render()
+ Url::widget()->id('url-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Url::widget()->id('url-6582f2d099e8b')->suffix('suffix')->render()
+ Url::widget()->id('url-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Url::widget()->id('url-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Url::widget()->id('url-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Url::widget()
->id('url-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Url::widget()
- ->id('url-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Url::widget()->id('url-6582f2d099e8b')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Url::widget()
- ->id('url-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Url::widget()->id('url-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Url::widget()->id('url-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Input/Week/CustomMethodTest.php b/tests/FormControl/Input/Week/CustomMethodTest.php
index f3d3dc90..68434879 100644
--- a/tests/FormControl/Input/Week/CustomMethodTest.php
+++ b/tests/FormControl/Input/Week/CustomMethodTest.php
@@ -26,165 +26,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Week::widget()->id('week-6582f2d099e8b')->prefix('prefix')->render()
+ Week::widget()->id('week-6582f2d099e8b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Week::widget()->id('week-6582f2d099e8b')->prefix('prefix')->prefixContainer(true)->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Week::widget()
->id('week-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Week::widget()
- ->id('week-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->render()
+ Week::widget()->id('week-6582f2d099e8b')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Week::widget()
- ->id('week-6582f2d099e8b')
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('article')
- ->render()
+ Week::widget()->id('week-6582f2d099e8b')->prefix('value')->prefixTag('article')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Week::widget()->id('week-6582f2d099e8b')->render()
+ Week::widget()->id('week-6582f2d099e8b')->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Week::widget()->id('week-6582f2d099e8b')->suffix('suffix')->render()
+ Week::widget()->id('week-6582f2d099e8b')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Week::widget()->id('week-6582f2d099e8b')->suffix('suffix')->suffixContainer(true)->render()
+ Week::widget()->id('week-6582f2d099e8b')->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Week::widget()
->id('week-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Week::widget()
- ->id('week-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->render()
+ Week::widget()->id('week-6582f2d099e8b')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Week::widget()
- ->id('week-6582f2d099e8b')
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('article')
- ->render()
+ Week::widget()->id('week-6582f2d099e8b')->suffix('value')->suffixTag('article')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Week::widget()->id('week-6582f2d099e8b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Label/CustomMethodTest.php b/tests/FormControl/Label/CustomMethodTest.php
index e769f7c1..abae0000 100644
--- a/tests/FormControl/Label/CustomMethodTest.php
+++ b/tests/FormControl/Label/CustomMethodTest.php
@@ -23,20 +23,25 @@ public function testPrefix(): void
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
+
value
value
HTML,
- Label::widget()->content('value')->prefixContainer(true)->prefix('value')->render()
+ Label::widget()
+ ->content('value')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
value
HTML,
- Label::widget()
- ->content('value')
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ Label::widget()->content('value')->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- value
-
+ valuevalue
HTML,
- Label::widget()
- ->content('value')
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerClass('value')
- ->render()
+ Label::widget()->content('value')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<value
+ value
value
HTML,
- Label::widget()
- ->content('value')
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerTag('span')
- ->render()
+ Label::widget()->content('value')->prefix('value')->prefixTag(false)->render()
);
}
@@ -104,20 +92,25 @@ public function testSuffix(): void
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<value
-
+
value
HTML,
- Label::widget()->content('value')->suffixContainer(true)->suffix('value')->render()
+ Label::widget()
+ ->content('value')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Label::widget()
- ->content('value')
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ Label::widget()->content('value')->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<value
-
- value
-
+ value
HTML,
- Label::widget()
- ->content('value')
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerClass('value')
- ->render()
+ Label::widget()->content('value')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<value
- value
+ value
HTML,
- Label::widget()
- ->content('value')
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerTag('span')
- ->render()
+ Label::widget()->content('value')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/FormControl/Select/CustomMethodTest.php b/tests/FormControl/Select/CustomMethodTest.php
index 5f61ac14..f86a52b9 100644
--- a/tests/FormControl/Select/CustomMethodTest.php
+++ b/tests/FormControl/Select/CustomMethodTest.php
@@ -137,7 +137,9 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
+ value
+
HTML,
- Select::widget()->items($this->cities)->prefix('prefix')->render()
+ Select::widget()->items($this->cities)->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- Select::widget()->items($this->cities)->prefixContainer(true)->prefix('prefix')->render()
+ Select::widget()->items($this->cities)->prefix('value')->prefixAttributes(['class' => 'value'])->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Select::widget()
- ->items($this->cities)
- ->prefixContainer(true)
- ->prefix('prefix')
- ->prefixContainerClass('value')
- ->render()
+ Select::widget()->items($this->cities)->prefix('value')->prefixClass('value')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- Select::widget()
- ->items($this->cities)
- ->prefixContainer(true)
- ->prefix('prefix')
- ->prefixContainerTag('span')
- ->render()
+ Select::widget()->items($this->cities)->prefix('value')->prefixTag('span')->render()
);
}
- public function testSuffix(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
@@ -226,13 +219,12 @@ public function testSuffix(): void
- value
HTML,
- Select::widget()->items($this->cities)->suffix('value')->render()
+ Select::widget()->items($this->cities)->prefix('value')->prefixTag(false)->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Select::widget()->items($this->cities)->suffixContainer(true)->suffix('value')->render()
+ Select::widget()->items($this->cities)->suffix('value')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Select::widget()
- ->items([1 => 'Moscu'])
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ Select::widget()->items([1 => 'Moscu'])->suffix('value')->suffixAttributes(['class' => 'value'])->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Select::widget()
- ->items([1 => 'Moscu'])
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerClass('value')
- ->render()
+ Select::widget()->items([1 => 'Moscu'])->suffix('value')->suffixClass('value')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
value
HTML,
- Select::widget()
- ->items([1 => 'Moscu'])
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerTag('span')
- ->render()
+ Select::widget()->items([1 => 'Moscu'])->suffix('value')->suffixTag('span')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+
+
+
+ value
+ HTML,
+ Select::widget()->items([1 => 'Moscu'])->suffix('value')->suffixTag(false)->render()
);
}
}
diff --git a/tests/FormControl/TextArea/CustomMethodTest.php b/tests/FormControl/TextArea/CustomMethodTest.php
index 1edc9e55..dba65dd2 100644
--- a/tests/FormControl/TextArea/CustomMethodTest.php
+++ b/tests/FormControl/TextArea/CustomMethodTest.php
@@ -26,75 +26,68 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- TextArea::widget()->id('textarea-659fc6087e75b')->prefix('prefix')->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->prefix('value')->render()
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+
+ value
HTML,
- TextArea::widget()->id('textarea-659fc6087e75b')->prefixContainer(true)->prefix('prefix')->render()
+ TextArea::widget()
+ ->id('textarea-659fc6087e75b')
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
+ ->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
TextArea::widget()
->id('textarea-659fc6087e75b')
- ->prefixContainer(true)
- ->prefix('prefix')
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixClass('value')
+ ->prefixTag('div')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
-
+ value
HTML,
- TextArea::widget()
- ->id('textarea-659fc6087e75b')
- ->prefixContainer(true)
- ->prefix('prefix')
- ->prefixContainerClass('value')
- ->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<prefix
+ value
HTML,
- TextArea::widget()
- ->id('textarea-659fc6087e75b')
- ->prefixContainer(true)
- ->prefix('prefix')
- ->prefixContainerTag('span')
- ->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->prefix('value')->prefixTag(false)->render()
);
}
@@ -113,74 +106,67 @@ public function testSuffix(): void
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- TextArea::widget()->id('textarea-659fc6087e75b')->suffix('suffix')->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->suffix('value')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
+
+ value
HTML,
- TextArea::widget()->id('textarea-659fc6087e75b')->suffixContainer(true)->suffix('suffix')->render()
+ TextArea::widget()
+ ->id('textarea-659fc6087e75b')
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
+ ->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
TextArea::widget()
->id('textarea-659fc6087e75b')
- ->suffixContainer(true)
- ->suffix('suffix')
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixClass('value')
+ ->suffixTag('div')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- TextArea::widget()
- ->id('textarea-659fc6087e75b')
- ->suffixContainer(true)
- ->suffix('suffix')
- ->suffixContainerClass('value')
- ->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- TextArea::widget()
- ->id('textarea-659fc6087e75b')
- ->suffixContainer(true)
- ->suffix('suffix')
- ->suffixContainerTag('span')
- ->render()
+ TextArea::widget()->id('textarea-659fc6087e75b')->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/Mutlimedia/Img/CustomMethodTest.php b/tests/Mutlimedia/Img/CustomMethodTest.php
index 3fe7f981..de61a18e 100644
--- a/tests/Mutlimedia/Img/CustomMethodTest.php
+++ b/tests/Mutlimedia/Img/CustomMethodTest.php
@@ -23,20 +23,20 @@ public function testPrefix(): void
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
+
value
HTML,
- Img::widget()->prefixContainer(true)->prefix('value')->render()
+ Img::widget()->prefix('value')->prefixAttributes(['class' => 'value'])->prefixTag('div')->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Img::widget()
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ Img::widget()->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- value
-
+ value
HTML,
- Img::widget()->prefixContainer(true)->prefix('value')->prefixContainerClass('value')->render()
+ Img::widget()->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<value
+ value
HTML,
- Img::widget()->prefixContainer(true)->prefix('value')->prefixContainerTag('span')->render()
+ Img::widget()->prefix('value')->prefixTag(false)->render()
);
}
@@ -98,20 +92,20 @@ public function testSuffix(): void
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
+
value
HTML,
- Img::widget()->suffixContainer(true)->suffix('value')->render()
+ Img::widget()->suffix('value')->suffixAttributes(['class' => 'value'])->suffixTag('div')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Img::widget()
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ Img::widget()->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- value
-
+ value
HTML,
- Img::widget()->suffixContainer(true)->suffix('value')->suffixContainerClass('value')->render()
+ Img::widget()->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- value
+ value
HTML,
- Img::widget()->suffixContainer(true)->suffix('value')->suffixContainerTag('span')->render()
+ Img::widget()->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/Tag/CustomMethodTest.php b/tests/Tag/CustomMethodTest.php
index 8cba7952..187543c2 100644
--- a/tests/Tag/CustomMethodTest.php
+++ b/tests/Tag/CustomMethodTest.php
@@ -16,165 +16,141 @@ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Tag::widget()->prefix('prefix')->tagName('span')->render()
+ Tag::widget()->prefix('value')->tagName('span')->render()
);
}
- public function testPrefixContainer(): void
- {
- Assert::equalsWithoutLE(
- <<
- prefix
-
-
- HTML,
- Tag::widget()->prefix('prefix')->prefixContainer(true)->tagName('span')->render()
- );
- }
-
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
Tag::widget()
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
+ ->prefix('value')
+ ->prefixAttributes(['class' => 'value'])
+ ->prefixTag('div')
->tagName('span')
->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Tag::widget()
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerClass('value')
- ->tagName('span')
- ->render()
+ Tag::widget()->prefix('value')->prefixClass('value')->prefixTag('div')->tagName('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- prefix
+ value
HTML,
- Tag::widget()
- ->prefix('prefix')
- ->prefixContainer(true)
- ->prefixContainerTag('p')
- ->tagName('span')
- ->render()
+ Tag::widget()->prefix('value')->prefixTag('p')->tagName('span')->render()
);
}
- public function testRender(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Tag::widget()->tagName('span')->render()
+ Tag::widget()->prefix('value')->prefixTag(false)->tagName('span')->render()
);
}
- public function testSuffix(): void
+ public function testRender(): void
{
Assert::equalsWithoutLE(
<<
- suffix
HTML,
- Tag::widget()->suffix('suffix')->tagName('span')->render()
+ Tag::widget()->tagName('span')->render()
);
}
- public function testSuffixContainer(): void
+ public function testSuffix(): void
{
Assert::equalsWithoutLE(
<<
-
- suffix
-
+ value
HTML,
- Tag::widget()->suffix('suffix')->suffixContainer(true)->tagName('span')->render()
+ Tag::widget()->suffix('value')->tagName('span')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
Tag::widget()
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerAttributes(['class' => 'value'])
+ ->suffix('value')
+ ->suffixAttributes(['class' => 'value'])
+ ->suffixTag('div')
->tagName('span')
->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Tag::widget()
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerClass('value')
- ->tagName('span')
- ->render()
+ Tag::widget()->suffix('value')->suffixClass('value')->suffixTag('div')->tagName('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
- suffix
+ value
HTML,
- Tag::widget()
- ->suffix('suffix')
- ->suffixContainer(true)
- ->suffixContainerTag('p')
- ->tagName('span')
- ->render()
+ Tag::widget()->suffix('value')->suffixTag('p')->tagName('span')->render()
+ );
+ }
+
+ public function testSuffixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Tag::widget()->suffix('value')->suffixTag(false)->tagName('span')->render()
);
}
diff --git a/tests/Textual/A/CustomMethodTest.php b/tests/Textual/A/CustomMethodTest.php
index 4c415790..fc08670a 100644
--- a/tests/Textual/A/CustomMethodTest.php
+++ b/tests/Textual/A/CustomMethodTest.php
@@ -23,20 +23,20 @@ public function testPrefix(): void
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
+
value
HTML,
- A::widget()->prefixContainer(true)->prefix('value')->render()
+ A::widget()->prefix('value')->prefixAttributes(['class' => 'value'])->prefixTag('div')->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- A::widget()
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ A::widget()->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- value
-
+ value
HTML,
- A::widget()->prefixContainer(true)->prefix('value')->prefixContainerClass('value')->render()
+ A::widget()->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<value
+ value
HTML,
- A::widget()->prefixContainer(true)->prefix('value')->prefixContainerTag('span')->render()
+ A::widget()->prefix('value')->prefixTag(false)->render()
);
}
@@ -98,20 +92,20 @@ public function testSuffix(): void
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
+
value
HTML,
- A::widget()->suffixContainer(true)->suffix('value')->render()
+ A::widget()->suffix('value')->suffixAttributes(['class' => 'value'])->suffixTag('div')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- A::widget()
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ A::widget()->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- value
-
+ value
HTML,
- A::widget()->suffixContainer(true)->suffix('value')->suffixContainerClass('value')->render()
+ A::widget()->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- value
+ value
HTML,
- A::widget()->suffixContainer(true)->suffix('value')->suffixContainerTag('span')->render()
+ A::widget()->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/Textual/I/CustomMethodTest.php b/tests/Textual/I/CustomMethodTest.php
index 70e88377..7e6bb6a5 100644
--- a/tests/Textual/I/CustomMethodTest.php
+++ b/tests/Textual/I/CustomMethodTest.php
@@ -23,20 +23,20 @@ public function testPrefix(): void
);
}
- public function testPrefixContainer(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
+
value
HTML,
- I::widget()->prefixContainer(true)->prefix('value')->render()
+ I::widget()->prefix('value')->prefixAttributes(['class' => 'value'])->prefixTag('div')->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- I::widget()
- ->prefixContainer(true)
- ->prefix('value')
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ I::widget()->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
- value
-
+ value
HTML,
- I::widget()->prefixContainer(true)->prefix('value')->prefixContainerClass('value')->render()
+ I::widget()->prefix('value')->prefixTag('span')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<value
+ value
HTML,
- I::widget()->prefixContainer(true)->prefix('value')->prefixContainerTag('span')->render()
+ I::widget()->prefix('value')->prefixTag(false)->render()
);
}
@@ -98,20 +92,20 @@ public function testSuffix(): void
);
}
- public function testSuffixContainer(): void
+ public function testSuffixAttributes(): void
{
Assert::equalsWithoutLE(
<<
-
+
value
HTML,
- I::widget()->suffixContainer(true)->suffix('value')->render()
+ I::widget()->suffix('value')->suffixAttributes(['class' => 'value'])->suffixTag('div')->render()
);
}
- public function testSuffixContainerAttributes(): void
+ public function testSuffixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- I::widget()
- ->suffixContainer(true)
- ->suffix('value')
- ->suffixContainerAttributes(['class' => 'value'])
- ->render()
+ I::widget()->suffix('value')->suffixClass('value')->suffixTag('div')->render()
);
}
- public function testSuffixContainerClass(): void
+ public function testSuffixTag(): void
{
Assert::equalsWithoutLE(
<<
-
- value
-
+ value
HTML,
- I::widget()->suffixContainer(true)->suffix('value')->suffixContainerClass('value')->render()
+ I::widget()->suffix('value')->suffixTag('span')->render()
);
}
- public function testSuffixContainerTag(): void
+ public function testSuffixTagWithFalseValue(): void
{
Assert::equalsWithoutLE(
<<
- value
+ value
HTML,
- I::widget()->suffixContainer(true)->suffix('value')->suffixContainerTag('span')->render()
+ I::widget()->suffix('value')->suffixTag(false)->render()
);
}
diff --git a/tests/Textual/Span/CustomMethodTest.php b/tests/Textual/Span/CustomMethodTest.php
index 6af6d36b..deb230e7 100644
--- a/tests/Textual/Span/CustomMethodTest.php
+++ b/tests/Textual/Span/CustomMethodTest.php
@@ -12,20 +12,18 @@
*/
final class CustomMethodTest extends TestCase
{
- public function testPrefixContainer(): void
+ public function testPrefix(): void
{
Assert::equalsWithoutLE(
<<
value
-
HTML,
- Span::widget()->prefix('value')->prefixContainer(true)->render()
+ Span::widget()->prefix('value')->render()
);
}
- public function testPrefixContainerAttributes(): void
+ public function testPrefixAttributes(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Span::widget()
- ->prefix('value')
- ->prefixContainer(true)
- ->prefixContainerAttributes(['class' => 'value'])
- ->render()
+ Span::widget()->prefix('value')->prefixAttributes(['class' => 'value'])->prefixTag('div')->render()
);
}
- public function testPrefixContainerClass(): void
+ public function testPrefixClass(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Span::widget()->prefix('value')->prefixContainer(true)->prefixContainerClass('value')->render()
+ Span::widget()->prefix('value')->prefixClass('value')->prefixTag('div')->render()
);
}
- public function testPrefixContainerTag(): void
+ public function testPrefixTag(): void
{
Assert::equalsWithoutLE(
<<
HTML,
- Span::widget()->prefix('value')->prefixContainer(true)->prefixContainerTag('div')->render()
+ Span::widget()->prefix('value')->prefixTag('div')->render()
+ );
+ }
+
+ public function testPrefixTagWithFalseValue(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ HTML,
+ Span::widget()->prefix('value')->prefixTag(false)->render()
);
}
@@ -78,6 +83,67 @@ public function testRender(): void
);
}
+ public function testSuffix(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+ value
+ HTML,
+ Span::widget()->suffix('value')->render()
+ );
+ }
+
+ public function testSuffixAttributes(): void
+ {
+ Assert::equalsWithoutLE(
+ <<
+