From 4f7d7975676c61ea613036ce105b5c3a0573310e Mon Sep 17 00:00:00 2001 From: Matt Campbell Date: Fri, 17 Feb 2017 20:16:41 +0000 Subject: [PATCH] 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 #264 --- Structural/Composite/Tests/CompositeTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Structural/Composite/Tests/CompositeTest.php b/Structural/Composite/Tests/CompositeTest.php index 10605f6..5ea803c 100644 --- a/Structural/Composite/Tests/CompositeTest.php +++ b/Structural/Composite/Tests/CompositeTest.php @@ -16,6 +16,9 @@ class CompositeTest extends \PHPUnit_Framework_TestCase $embed->addElement(new Composite\InputElement()); $form->addElement($embed); + // This is just an example, in a real world scenario it is important to remember that web browsers do not + // currently support nested forms + $this->assertEquals( '
Email:Password:
', $form->render()