File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
zip /
tests /
zip_open_error.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
zip_open() error conditions
--CREDITS--
Birgitte Kvarme <bitta@redpill-linpro.com>
#PHPTestFest2009 Norway 2009-06-09 \o/
--SKIPIF--
<?php
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
echo "Test case 1:";
$zip = zip_open("");
echo "Test case 2:";
$zip = zip_open("i_dont_care_about_this_parameter", "this_is_one_to_many");
echo "Test case 3:\n";
$zip = zip_open("/non_exisitng_directory/test_procedural.zip");
echo is_resource($zip) ? "OK" : "Failure";
?>
--EXPECTF--
Test case 1:
Warning: zip_open(): Empty string as source in %s on line %d
Test case 2:
Warning: zip_open() expects exactly 1 parameter, 2 given in %s on line %d
Test case 3:
Failure
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>