예제 #1
0
파일: FileTest.php 프로젝트: rexmac/zf2
 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);
 }