diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/zip/tests/oo_addfile.phpt | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/zip/tests/oo_addfile.phpt')
-rw-r--r-- | ext/zip/tests/oo_addfile.phpt | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ext/zip/tests/oo_addfile.phpt b/ext/zip/tests/oo_addfile.phpt deleted file mode 100644 index ab79780999..0000000000 --- a/ext/zip/tests/oo_addfile.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -ziparchive::addFile() function ---SKIPIF-- -<?php -/* $Id$ */ -if(!extension_loaded('zip')) die('skip'); -?> ---FILE-- -<?php - -$dirname = dirname(__FILE__) . '/'; -include $dirname . 'utils.inc'; -$file = $dirname . '__tmp_oo_addfile.zip'; - -copy($dirname . 'test.zip', $file); - -$zip = new ZipArchive; -if (!$zip->open($file)) { - exit('failed'); -} -if (!$zip->addFile($dirname . 'utils.inc', 'test.php')) { - echo "failed\n"; -} -if ($zip->status == ZIPARCHIVE::ER_OK) { - dump_entries_name($zip); - $zip->close(); -} else { - echo "failed\n"; -} -@unlink($file); -?> ---EXPECTF-- -0 bar -1 foobar/ -2 foobar/baz -3 entry1.txt -4 test.php |