* Jordi Boggiano * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Test\Package\Archiver; use Composer\Package\Archiver\ZipArchiver; /** * @author Till Klampaeckel * @author Matthieu Moquet */ class ZipArchiverTest extends ArchiverTest { public function testArchive() { $this->setupGitRepo(); $package = $this->setupPackage(); $target = sys_get_temp_dir().'/composer_archiver_test.zip'; // Test archive $archiver = new ZipArchiver(); $archiver->archive($package->getSourceUrl(), $target); $this->assertFileExists($target); unlink($target); $this->removeGitRepo(); } }