public function testRender()
 {
     $form = new Composite\Form();
     $form->addElement(new Composite\TextElement('Email:'));
     $form->addElement(new Composite\InputElement());
     $embed = new Composite\Form();
     $embed->addElement(new Composite\TextElement('Password:'******'<form>Email:<input type="text" /><form>Password:<input type="text" /></form></form>', $form->render());
 }
Ejemplo n.º 2
0
 public function testRender()
 {
     $form = new Composite\Form();
     $form->addElement(new Composite\TextElement());
     $form->addElement(new Composite\InputElement());
     $embed = new Composite\Form();
     $embed->addElement(new Composite\TextElement());
     $embed->addElement(new Composite\InputElement());
     $form->addElement($embed);
     // here we have a embedded form (like SF2 does)
     $this->assertRegExp('#^\\s{4}#m', $form->render());
 }