1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-06-07 14:35:02 +02:00

change structure

This commit is contained in:
wapplay-home-linux 2016-09-09 17:30:17 +03:00
parent fe38b442a0
commit 5c23e588ff
8 changed files with 3 additions and 4 deletions

View File

@ -235,7 +235,6 @@ $zip = new \Nelexa\Zip\ZipFile();
$zip->open("output.zip"); $zip->open("output.zip");
$zip->addFromString("new-file", file_get_contents(__FILE__)); $zip->addFromString("new-file", file_get_contents(__FILE__));
$zip->saveAs("output2.zip"); $zip->saveAs("output2.zip");
$zip->save();
$zip->close(); $zip->close();
// $ zipinfo output2.zip // $ zipinfo output2.zip

View File

@ -3,7 +3,7 @@
"description": "Zip create, modify and extract tool. Alternative ZipArchive.", "description": "Zip create, modify and extract tool. Alternative ZipArchive.",
"type": "library", "type": "library",
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.5" "phpunit/phpunit": "4.8"
}, },
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
@ -19,7 +19,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Nelexa\\Zip\\": "src" "Nelexa\\Zip\\": "src/Nelexa/Zip"
} }
} }
} }

View File

@ -1,6 +1,6 @@
<?php <?php
class TestZipFile extends \PHPUnit\Framework\TestCase class TestZipFile extends PHPUnit_Framework_TestCase
{ {
public function testCreate() public function testCreate()