Example #1
0
 /**
  * Create a file input field.
  *
  * @param string $name
  * @param array $options
  * @return string 
  * @static 
  */
 public static function file($name, $options = array())
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \Bootstrapper\Form::file($name, $options);
 }
 public function testFile()
 {
     $html = Form::file('foo', $this->testAttributes);
     $expected = '<input class="foo input-file" data-foo="bar" type="file" name="foo">';
     $this->assertEquals($expected, $html);
 }