AdamWathan\Form\Elements\FormOpen::post PHP Method

post() public method

public post ( )
    public function post()
    {
        $this->setMethod('POST');
        return $this;
    }

Usage Example

Esempio n. 1
0
 public function testRenderPostFormOpen()
 {
     $form = new FormOpen();
     $expected = '<form method="POST" action="">';
     $result = $form->post()->render();
     $this->assertEquals($expected, $result);
 }