Browse Source

change structure

wapplay-home-linux 9 years ago
parent
commit
5c23e588ff

+ 0 - 1
README.md

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

+ 2 - 2
composer.json

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

+ 0 - 0
src/FilterFileIterator.php → src/Nelexa/Zip/FilterFileIterator.php


+ 0 - 0
src/ZipEntry.php → src/Nelexa/Zip/ZipEntry.php


+ 0 - 0
src/ZipException.php → src/Nelexa/Zip/ZipException.php


+ 0 - 0
src/ZipFile.php → src/Nelexa/Zip/ZipFile.php


+ 0 - 0
src/ZipUtils.php → src/Nelexa/Zip/ZipUtils.php


+ 1 - 1
tests/TestZipFile.php

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