public function action($action) { $this->setAttribute('action', $action); return $this; }
public function testSetAction() { $form = new FormOpen(); $expected = '<form method="POST" action="/test">'; $result = $form->action('/test')->render(); $this->assertEquals($expected, $result); }