Ejemplo n.º 1
0
 public function save($filename)
 {
     $zip = new ZipArchiveAdapter($filename);
     foreach ($this->tmpFiles as $path => $tmpFile) {
         $zip->writeStream($path, $tmpFile, new Config());
     }
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider zipProvider
  * @expectedException  LogicException
  */
 public function testWriteStreamFail(Zip $zip)
 {
     $zip->writeStream('file.txt', tmpfile(), new Config(['visibility' => 'private']));
 }