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

encodingType() public method

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

Usage Example

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);
 }