/** * 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); }