--TEST-- zip_open() error conditions --CREDITS-- Birgitte Kvarme #PHPTestFest2009 Norway 2009-06-09 \o/ --EXTENSIONS-- zip --FILE-- getMessage() . \PHP_EOL; } echo "Test case 2:\n"; $zip = zip_open("/non_exisitng_directory/test_procedural.zip"); echo is_resource($zip) ? "OK" : "Failure"; ?> --EXPECTF-- Test case 1: Deprecated: Function zip_open() is deprecated since 8.0, use ZipArchive::open() instead in %s on line %d zip_open(): Argument #1 ($filename) must not be empty Test case 2: Deprecated: Function zip_open() is deprecated since 8.0, use ZipArchive::open() instead in %s on line %d Failure