/**
  * @test
  */
 public function renderCallsSetErrorClassAttribute()
 {
     $this->viewHelper->expects($this->once())->method('setErrorClassAttribute');
     $this->viewHelper->render();
 }
 /**
  * Renders the textfield.
  *
  * @param boolean $required If the field is required or not
  * @param string $type
  * @return string
  * @api
  */
 public function render($required = FALSE, $type = 'text')
 {
     $content = parent::render($required, 'date');
     $content .= '<input type="hidden" name="' . $this->prefixFieldName(parent::getNameWithoutPrefix()) . '[dateFormat]" value="' . htmlspecialchars($this->arguments['format']) . '" />';
     return $content;
 }