Exemple #1
0
 public function file_field($name, $html_attributes = array())
 {
     return FormTagHelper::file_field_tag($this->get_field_name($name), $html_attributes);
 }
 public function test_file_field_tag()
 {
     $actual = FormTagHelper::file_field_tag('upload');
     $matcher = array('tag' => 'input', 'attributes' => array('type' => 'file', 'id' => 'upload', 'name' => 'upload'));
     $this->assertTag($matcher, $actual, 'Default attributes');
 }