Greg Beaver
96d4c2b62f
fix zip metadata for archive/fix perms for file in zip/all.phpt test
2008-05-06 21:46:26 +00:00
Greg Beaver
04735b675d
new failing test for testing all zip creation facets
2008-05-06 21:34:19 +00:00
Greg Beaver
5ba8ca70a4
fix alias overloading handling for archives that are not in use
2008-05-06 21:14:53 +00:00
Greg Beaver
3d388e71d2
new test for unset behavior
2008-05-06 18:25:33 +00:00
Steph Fox
21460875fc
- Some tests for buildFromDirectory()
2008-05-04 20:58:43 +00:00
Greg Beaver
a180fcc9bc
add Phar::unlinkArchive() to allow complete removal of a parsed phar archive from memory and disk
2008-05-03 02:04:24 +00:00
Greg Beaver
bfbe53eeb2
refactor isTar/isZip/isPhar into isFileFormat(int format) where format is one of Phar::TAR,, Phar::ZIP, Phar::PHAR
...
[DOC]
2008-05-02 05:05:56 +00:00
Greg Beaver
c3816a2aa0
fix test to be truly path-agnostic
2008-04-30 23:06:04 +00:00
Greg Beaver
d16f86f528
fix Bug #13786 on unix (Steph can you verify?)
2008-04-30 22:16:25 +00:00
Greg Beaver
791bb5db46
fix test (passes in PHP_5_3 on my 64-bit machine, have not yet tested in 5_2)
2008-04-30 22:12:21 +00:00
Greg Beaver
73830f751f
add missing file for test
2008-04-30 22:09:18 +00:00
Greg Beaver
aeefda4a50
stupid cut/paste error
2008-04-30 20:14:54 +00:00
Greg Beaver
9d27fab9c4
increase code coverage to test cwd stuffs
2008-04-30 20:14:15 +00:00
Steph Fox
8a970147ad
- Allow setStub() to continue working
...
- Fix tests broken by earlier commit
2008-04-29 12:26:58 +00:00
Steph Fox
8559a2dbde
- Prevent phars with empty manifests flushing to disk
...
- This would've fixed that test... removing clean section
@Greg: I commented out the call that breaks the Windows build, pending a decision about its future.
2008-04-29 12:06:54 +00:00
Steph Fox
7d3e9ef952
- Fix paths in test
2008-04-29 11:37:33 +00:00
Steph Fox
7762c5d204
- Add test for bug #13786
2008-04-29 10:45:23 +00:00
Greg Beaver
18f221c61d
it's a bit cheesy, but make this test 5.2/5.3 agnostic :)
2008-04-28 22:32:15 +00:00
Greg Beaver
e2660a692b
fix test
2008-04-27 23:59:14 +00:00
Steph Fox
51459aade4
- Another test that gives completely different results if readonly=0
2008-04-27 12:22:36 +00:00
Steph Fox
473abd4e2b
- Deleting files we cannot see...
2008-04-27 11:36:22 +00:00
Steph Fox
37a8782f0c
- Fix a couple of failing tests/bad cleanup
...
@Greg: the phpinfo() ones assumed no php.ini - this isn't always the case, even if it should be
2008-04-27 11:31:27 +00:00
Steph Fox
9e8c3ea9a7
- Always give reasons for skipped tests
2008-04-27 10:18:35 +00:00
Greg Beaver
5bf3d1d362
fix invalid free
2008-04-27 07:04:56 +00:00
Greg Beaver
fade22bfd8
fix ridiculously critical omission in zip flush - we never set compressed file size! Augment zip test for bz2/zlib-compressed alias files to increase code coverage
2008-04-26 23:02:51 +00:00
Greg Beaver
11c93b8494
add checking for invalid alias on opening tar, and test
2008-04-26 22:31:44 +00:00
Greg Beaver
ad6e7fc667
add screening of alias to reading of zip archives, and test for bad aliases
2008-04-26 22:04:04 +00:00
Greg Beaver
5b85b2074b
new test/updated test to ensure stub integrity (I was wrong, zip is fine)
2008-04-26 17:47:31 +00:00
Greg Beaver
489fe0331f
add logic test to ensure stub is not overwritten when adding a file (zip currently does this - bad zip)
2008-04-26 17:43:53 +00:00
Greg Beaver
52f5a0f2ac
increase code coverage
2008-04-26 17:34:14 +00:00
Greg Beaver
15f9f20c3c
really fix test by fixing the regex
2008-04-26 17:32:18 +00:00
Greg Beaver
76c78a480e
increase code coverage (and magically, mysteriously this tests passes with no other changes - weird)
2008-04-26 17:29:55 +00:00
Greg Beaver
eb6b941d2a
fix clean
2008-04-26 17:28:28 +00:00
Greg Beaver
f37605ec0c
increase code coverage
2008-04-26 17:27:47 +00:00
Greg Beaver
b22cc67e6b
new test increases code coverage
2008-04-26 17:20:50 +00:00
Greg Beaver
2227f10f3e
add failing portion of test for compressed alias read
2008-04-26 17:18:15 +00:00
Greg Beaver
8e7f6d6662
add failing portion of test for bz2 compressed file on open
2008-04-26 17:14:27 +00:00
Greg Beaver
79a45a9666
fix buildfromiterator base to exclude directory separator on unix or windows, fix 10 test to have new tests
2008-04-26 17:09:58 +00:00
Greg Beaver
c6b617eca8
fix cleanup
2008-04-26 16:57:14 +00:00
Steph Fox
cf7f50e42c
- Added a RecursiveIterator/buildFromIterator test
...
- Fixed up bug13727.phpt to take < 15 minutes :\\ and clean up after itself
- Cleaned up protos/reflection data
- Added myself to package.xml credits
2008-04-26 13:22:38 +00:00
Greg Beaver
0c2f3b760a
add Phar::extractTo(dest_directory[, mixed files[, bool overwrite]])
...
this is very similar to ext/zip's extractTo and is based on that code, with the addition of the third parameter, which
is used to allow overwriting existing files (disallowed by default, unlike ext/zip's implementation)
[DOC]
2008-04-26 05:31:00 +00:00
Greg Beaver
c5fc383cb7
finish code coverage work (whew)
2008-04-26 05:28:56 +00:00
Greg Beaver
68dc76a9ab
make dang sure this ridiculous test cleans up after itself
2008-04-25 16:54:37 +00:00
Greg Beaver
8657ab7e5a
add test for bug #13727 , fix bug #13727
2008-04-25 16:50:22 +00:00
Greg Beaver
2bf5042d74
finish code coverage testing of phar_object.c (except for iterator building, which Steph is doing) and fix segfault in error message for directory getcontent if it is a temp directory
2008-04-25 16:10:59 +00:00
Greg Beaver
84004bf248
new test with code coverage for PharFileInfo::setMetadata/delMetadata, improve error messages
2008-04-25 16:05:05 +00:00
Greg Beaver
3864211c00
remove unneeded skipif conditions
2008-04-25 15:56:20 +00:00
Greg Beaver
13dc477de2
new code coverage test, improve clarity of error message when chmod is used on a temp directory
2008-04-25 15:53:02 +00:00
Greg Beaver
6036559d35
fix tests on windows
2008-04-25 04:31:44 +00:00
Greg Beaver
fc9aba79f5
add missing file (Steph: this fixes tests/tar/truncated.phpt, sorry :)
2008-04-25 04:29:08 +00:00
Greg Beaver
218b975485
fix test (except for memleaks)
2008-04-24 20:02:04 +00:00
Greg Beaver
0db641af3e
rework PharFileInfo->decompress and add failing test
2008-04-24 19:57:22 +00:00
Greg Beaver
d28dcfaf60
new test
2008-04-24 17:25:23 +00:00
Greg Beaver
84c622c2ab
new test for PharFileInfo::__destruct
2008-04-24 17:19:01 +00:00
Steph Fox
aaf5498ff4
- clean the right file :)
2008-04-24 17:02:27 +00:00
Greg Beaver
91e67a4fbd
test PharFileInfo::__construct, fix potential segfault, and bad logic in phar detection
2008-04-24 05:18:50 +00:00
Greg Beaver
1f98c6526b
increase code coverage
2008-04-24 05:03:12 +00:00
Greg Beaver
8f0c9caac5
remove redundant unreachable code in Phar::copy, augment test, and add failing condition that needs to be fixed
2008-04-24 04:14:05 +00:00
Greg Beaver
696dafa370
new test for Phar::decompress()
2008-04-24 04:05:20 +00:00
Greg Beaver
b721660ec7
increase code coverage
2008-04-23 19:01:52 +00:00
Greg Beaver
9c60d2dcaf
increase code coverage
2008-04-23 19:00:42 +00:00
Greg Beaver
207a093186
increase code coverage
2008-04-23 18:59:41 +00:00
Greg Beaver
3190bd0884
increase code coverage, fix minor memleak
2008-04-23 18:54:09 +00:00
Greg Beaver
cebd8a5864
increase code coverage
2008-04-23 18:46:48 +00:00
Greg Beaver
ba2182d795
increase code coverage
2008-04-23 18:46:21 +00:00
Greg Beaver
e5309e4aad
increase code coverage
2008-04-23 18:45:42 +00:00
Greg Beaver
ab1d8adb96
fix default format conversion, increase code coverage
2008-04-23 18:44:43 +00:00
Greg Beaver
26d2062305
increase code coverage slightly
2008-04-23 18:32:59 +00:00
Greg Beaver
3b8fc7309f
new test increases code coverage, fix memleak found by test
2008-04-23 18:30:53 +00:00
Greg Beaver
4a0b06af82
increase code coverage
2008-04-23 18:22:55 +00:00
Greg Beaver
c034683550
new test for Phar::isValidPharFilename. Fix Phar::isValidPharFilename. Fix extension detection for all cases
2008-04-23 18:11:20 +00:00
Greg Beaver
faaa9261e5
new test for Phar::loadPhar with phar.extract_list
2008-04-23 17:27:31 +00:00
Greg Beaver
d3689baf53
new test for Phar::mapPhar with phar.extract_list
2008-04-23 17:25:52 +00:00
Greg Beaver
1dc190e680
improve rewrite callback support, add test for callback that does not return string/false
2008-04-23 17:18:28 +00:00
Greg Beaver
22878f0ea2
new test for valid callback that fails for rewrite callback
2008-04-23 16:50:19 +00:00
Greg Beaver
ce5732112e
new test for invalid rewrite callback
2008-04-23 16:47:12 +00:00
Greg Beaver
50835e4bb7
new test for SCRIPT_NAME not containing the filename
2008-04-23 16:06:59 +00:00
Greg Beaver
2aa87329db
new test for webPhar failure on opening file
2008-04-23 16:03:08 +00:00
Greg Beaver
76b8f30659
new test for webPhar with phar.extract_list
2008-04-23 16:00:06 +00:00
Greg Beaver
af3dfa23f6
fix headers in test
2008-04-22 17:29:11 +00:00
Greg Beaver
3330c16967
new test for fatal error in php file executed by front controller
2008-04-22 17:28:50 +00:00
Greg Beaver
d8b4c2795e
remove unreachable code, add test for large non-php file
2008-04-22 17:17:29 +00:00
Greg Beaver
cb8f158cd5
fix PATH_INFO munging, add to test case
2008-04-22 17:11:30 +00:00
Greg Beaver
5ac9c1f23e
remove unreachable code, add test for no file extension and unknown file extension with Phar::webPhar
2008-04-22 17:03:10 +00:00
Greg Beaver
4e5fc75977
big ol code coverage test for bad parameters to Phar methods
2008-04-22 05:17:04 +00:00
Greg Beaver
4388a65aa8
fix Phar::mount() to also allow running externally with full phar:// path, add test
2008-04-21 18:21:54 +00:00
Greg Beaver
e0873a380d
fix Phar::running()
2008-04-21 18:06:20 +00:00
Greg Beaver
25cdc7de2b
fix discovery of files hidden in a URL - makes using any regular front controller possible
2008-04-21 17:59:28 +00:00
Greg Beaver
2f56c7f343
new test for custom 404 handler, fix segfault found by test
2008-04-21 17:46:24 +00:00
Greg Beaver
cfc12b2afe
increase code coverage of phar.c significantly by ensuring signature algorithm test is actually run (duh)
2008-04-21 17:04:15 +00:00
Greg Beaver
7ee3597851
increase code coverage
2008-04-21 16:56:45 +00:00
Greg Beaver
7d218cab35
cosmetics: same case as other tests
2008-04-21 16:42:24 +00:00
Greg Beaver
44358edd8d
new test for non-executable zip named as phar
2008-04-21 16:39:11 +00:00
Greg Beaver
779fec2278
implement opendir for mounted directories - much simpler to do than I initially thought
2008-04-21 16:29:09 +00:00
Greg Beaver
afa1439304
finish code coverage for tar file format
2008-04-21 06:46:40 +00:00
Greg Beaver
c4315bfb2b
add test for huge filenames, fix huge filename reading
2008-04-21 06:33:49 +00:00
Greg Beaver
1f6292e91d
new test for corrupted tar with hard link to nowhere
2008-04-21 06:21:09 +00:00
Greg Beaver
3d858f4aa9
implement symbolic link support within a tar-based phar archive
...
this also resulted in a major fix for mounted directories, which were recycling the 'link' field which
could cause stupid conflicts with actual links, so move that to new 'tmp' field.
2008-04-21 06:17:51 +00:00
Greg Beaver
f70d527661
use a tar generated by the tar command to test links. Test still fails
2008-04-20 21:48:30 +00:00
Greg Beaver
ca6f70c8a3
add test for symbolic and hard links
2008-04-20 17:59:14 +00:00