Author: Grégoire Passault (g.passault@gmail.com)
Ejemplo n.º 1
0
 protected function getHtmlOfForm(Form $form, $index)
 {
     $myName = $this->name;
     $form->hookNames(function ($name) use($myName, $index) {
         return $myName . '[' . $index . '][' . $name . ']';
     });
     return (string) $form;
 }
Ejemplo n.º 2
0
 /**
  * Testing that Formidable output given back to Formidable gives the same output
  */
 public function testOutIn()
 {
     $form = $this->getForm('out_in.html');
     $html = $form->getHtml();
     $otherForm = new Form($html);
     $otherHtml = $otherForm->getHtml();
     $this->assertEquals($html, $otherHtml);
 }