protected function getValueAttribute($ignoreSubmittedFormData = FALSE) { $value = parent::getValueAttribute($ignoreSubmittedFormData); if ($value === NULL) { return NULL; } if (is_array($value)) { return $value['date']; } return $value->format($this->arguments['format']); }
/** * @test */ public function renderCallsSetErrorClassAttribute() { $this->viewHelper->expects($this->once())->method('setErrorClassAttribute'); $this->viewHelper->render(); }