1
0
mirror of https://github.com/splitbrain/php-archive.git synced 2025-03-11 09:39:44 +01:00

32 Commits

Author SHA1 Message Date
Erwin Derksen
a54081a9bc Make tests run on Windows. 2021-02-22 21:33:17 +01:00
Erwin Derksen
2880b67475 dirname(__FILE__) => __DIR__ (valid as of php 5.3) 2021-02-22 21:03:29 +01:00
Andreas Gohr
211a2198b7 additional zero file testing
Existing tests didn't 100% make sure a zero byte file was correctly
added and extracted. It was. Now we also have the tests to prove it.
2021-02-22 18:59:24 +01:00
Erwin Derksen
42240bb3d3 Corrected unit test testAddFileWithInvalidFile() 2021-02-22 17:28:57 +01:00
Andreas Gohr
d53bf2ed77 updated testing
* test on github not travis
* run phpunit8 (tests only on 7.2+)
* use github action to build api docs
2021-02-05 13:38:50 +01:00
Andreas Gohr
d4cf2d9a2d renamed FileInfo::match() to FileInfo::matchExpression()
In PHP8, `match` is a reserved keyword. In preparation this renames the
method. A fallback via __call() is provided which will trigger a
E_USER_NOTICE.
2020-10-13 14:41:15 +02:00
Andreas Gohr
0feb2c8107 clean up doc blocks and minor code smell 2018-06-12 22:04:45 +02:00
Andreas Gohr
3b5207aab3 added callback mechanism to show progress during ops 2018-06-12 22:04:17 +02:00
peter279k
e6e5a8edf6 using assertInternalType method 2018-02-04 22:17:09 +08:00
peter279k
da604987be change 104 to 102 2018-02-04 19:06:54 +08:00
peter279k
ef1985eead tests enhancement 2018-02-04 19:01:02 +08:00
Owen
b74df7c9ce added gzip test, ignored nbproject 2017-06-10 12:04:06 +08:00
Andreas Gohr
3933fc63c6 ignore utf-8 chars that don't fit into CP437 2017-03-03 13:51:59 +01:00
Andreas Gohr
a72a6e56e1 properly encode UTF-8 filenames in zip files #14
Uses the Info-ZIP Unicode Path Extra Field 0x7075
2017-03-03 13:46:31 +01:00
Andreas Gohr
6606edd9ee some improvements on non 7bit string handling #14
This should read at least some zip files with umlauts and stuff better
2017-03-03 12:45:44 +01:00
Andreas Gohr
74d7442807 testing: run created archives through native tools
This should ensure the files we create are actually understood by common
tools.
2017-03-03 10:52:16 +01:00
Andreas Gohr
2e7533b384 always store directories with file size 0. fixes #15 2017-03-03 10:22:10 +01:00
Andreas Gohr
c075304b44 added dogfooding test, extract self created archives 2015-08-12 15:24:34 +02:00
Andreas Gohr
c2490eaadc correctly skip in bzip streams. closes #9 2015-08-12 15:21:54 +02:00
Andreas Gohr
2492960566 more tests with different extensions 2015-08-12 14:35:10 +02:00
Andreas Gohr
b244bc4dbd added test for magic byte testing 2015-08-12 11:48:39 +02:00
Andreas Gohr
1ae8687e13 Merge branch 'master' into magicbytes
* master:
  added compression example to README
  fixed various calls in the tests
  fixed compression setting on saving inmemory tars
2015-08-12 11:46:46 +02:00
Andreas Gohr
091fac973f fixed various calls in the tests 2015-08-12 11:44:24 +02:00
Andreas Gohr
5e7d32a4f4 use magic bytes to determine compression type 2015-08-12 11:30:10 +02:00
Andreas Gohr
6572e78ef9 adjusted tests 2015-07-24 13:36:49 +02:00
Andreas Gohr
a8881f4e07 correctly remove temporary files when uncompressing ZIPs 2015-07-24 13:29:49 +02:00
Andreas Gohr
a0fbfc2f85 fixed inheritence for Zip class
made the setCompression() function behave the same in both classes
2015-02-25 21:15:02 +01:00
Andreas Gohr
f4e593d53a added tests to check for exceptions 2015-02-25 19:22:22 +01:00
Andreas Gohr
c948130add zip tests run through as well 2015-02-20 15:07:06 +01:00
Andreas Gohr
3f0d6cf396 tests for Tar are running again 2015-02-20 14:46:22 +01:00
Andreas Gohr
6121140040 basic package setup 2015-02-20 10:50:44 +01:00
Andreas Gohr
737f1a5a47 initial commit with DokuWiki based files 2014-09-03 06:13:00 +02:00