示例#1
0
 public function testFormatNotSupportedAfterDisablingAllMethods()
 {
     $this->setExpectedException('Distill\\Exception\\IO\\Input\\FileFormatNotSupportedException');
     $target = $this->getTemporaryPath();
     $this->clearTemporaryPath();
     $this->distill->disableMethod(Cabextract::getName());
     $this->distill->disableMethod(Gcab::getName());
     $this->distill->disableMethod(x7zip::getName());
     $result = $this->distill->extract($this->filesPath . 'file_ok.cab', $target, new Format\Cab());
     $this->clearTemporaryPath();
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public static function getUncompressionMethods()
 {
     return [Method\Command\GnuTar::getName(), Method\Command\x7zip::getName(), Method\Extension\PharData::getName(), Method\Extension\Pear\ArchiveTar::getName()];
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public static function getUncompressionMethods()
 {
     return [Method\Command\Unzip::getName(), Method\Command\x7zip::getName(), Method\Extension\Zip::getName()];
 }