public function setupElementWithMaxFileSize() { $max = $this->_convertIniToInteger(trim(ini_get('upload_max_filesize'))); $element = new FileElement('foo'); $element->addValidator('Count', 1)->setView($this->getView())->setMaxFileSize($max); $this->element = $element; $this->decorator->setElement($element); }