/** * Prints out the current tag * * @return string An input file tag */ public function render() { // Maximum file size $hidden = $this->maxSize ? HtmlInput::hidden('MAX_FILE_SIZE', $this->maxSize) : null; return parent::render() . $hidden; }
public function testCanUseXhtmlStandards() { Tag::$config['doctype'] = 'xhtml'; $field = Input::hidden('foo', 'bar'); $this->assertContains(' />', $field->render()); }