AdamWathan\Form\Elements\FormOpen::post PHP 메소드

post() 공개 메소드

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

Usage Example

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