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