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
This commit is contained in:
Matt Campbell 2017-02-17 20:16:41 +00:00
parent 97c507886d
commit 4f7d797567

View File

@ -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(
'<form>Email:<input type="text" /><form>Password:<input type="text" /></form></form>',
$form->render()