mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-06 05:55:09 +02:00
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:
parent
97c507886d
commit
4f7d797567
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user