public function testZipHigherDirectory() { $this->zipper->add(__DIR__ . '/../../../src'); $this->zipper->setDestination($this->destinationFile); $this->zipper->compress(); $this->assertFileExists($this->destinationFile); $this->extract(); $this->assertFileExists($this->extractDir . '/src/Dimsav/UnixZipper.php'); }
/** * Saves the files into the extraction directory */ public function extract() { $this->zipper->add($this->dir); $this->extractedFiles[] = $dir = $this->extractionDir . '/' . date("Y-m-d_H-i-s") . '_' . $this->destinationFile; $this->zipper->setDestination($dir); foreach ($this->excludes as $exclude) { $this->zipper->exclude($exclude); } $this->zipper->compress(); }