getFileTransfer() 공개 메소드

Return File Transfer adapter
public getFileTransfer ( ) : Zend\File\Transfer\Adapter
리턴 Zend\File\Transfer\Adapter
예제 #1
0
파일: FileTest.php 프로젝트: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testUploadWithoutValidators()
 {
     $this->initializeFiles();
     $this->object->getFileTransfer()->removeValidator('Zend\\Validator\\File\\Upload');
     $result = $this->object->upload();
     $this->assertTrue($this->object->upload());
     $files = $this->object->getFiles();
     if (is_array($files)) {
         foreach ($files as $file) {
             $this->object->remove($file['filename']);
         }
     }
     $this->removeDirectories();
     $this->assertTrue($result);
 }