Files
php-rar/tests/032.phpt
cataphract 02855820f7 Fixed test 32 (trivial).
git-svn-id: http://svn.php.net/repository/pecl/rar/trunk@293638 c90b9560-bf6c-de11-be94-00142212c4b1
2010-01-17 08:54:43 +00:00

17 lines
418 B
PHP

--TEST--
RarArchive traversal with multi-part archive
--SKIPIF--
<?php if(!extension_loaded("rar")) print "skip"; ?>
--FILE--
<?php
$rarF = RarArchive::open(dirname(__FILE__) . '/multi.part1.rar');
foreach ($rarF as $k => $rarE) {
echo "$k. $rarE\n";
}
echo "Done\n";
--EXPECTF--
0. RarEntry for file "file1.txt" (52b28202)
1. RarEntry for file "file2.txt" (f2c79881)
2. RarEntry for file "file3.txt" (bcbce32e)
Done