Skip to content

Commit 4f7d797

Browse files
committed
Composite Test: Add information about nested forms
Add information for composite pattern test to hopefully help to not mislead anyone viewing this test, into thinking that they can nest HTML form elements. Closes DesignPatternsPHP#264
1 parent 97c5078 commit 4f7d797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Structural/Composite/Tests/CompositeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public function testRender()
1616
$embed->addElement(new Composite\InputElement());
1717
$form->addElement($embed);
1818

19+
// This is just an example, in a real world scenario it is important to remember that web browsers do not
20+
// currently support nested forms
21+
1922
$this->assertEquals(
2023
'<form>Email:<input type="text" /><form>Password:<input type="text" /></form></form>',
2124
$form->render()

0 commit comments

Comments
 (0)