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:
parent
fe38b442a0
commit
5c23e588ff
@ -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
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class TestZipFile extends \PHPUnit\Framework\TestCase
|
class TestZipFile extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
public function testCreate()
|
public function testCreate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user