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

encodingType() 공개 메소드

public encodingType ( $type )
    public function encodingType($type)
    {
        $this->setAttribute('enctype', $type);
        return $this;
    }

Usage Example

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