示例#1
0
 /**
  * Test if setting an action gets rendered.
  */
 public function testSetAction()
 {
     $form = new Form('test', new FormElementFactory());
     $form->setAction('index.php');
     $this->assertSame("<form id=\"test\" action=\"index.php\">" . PHP_EOL . PHP_EOL . "</form>" . PHP_EOL, $form->render());
 }