Annotation of embedaddon/php/ext/zip/tests/oo_close.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: zip::close() function
                      3: --SKIPIF--
                      4: <?php
1.1.1.2 ! misho       5: /* $Id$ */
1.1       misho       6: if(!extension_loaded('zip')) die('skip');
                      7: ?>
                      8: --FILE--
                      9: <?php
                     10: 
                     11: $dirname = dirname(__FILE__) . '/';
                     12: $zip = new ZipArchive;
                     13: if (!$zip->open($dirname . 'test.zip')) {
                     14:        exit('failed');
                     15: }
                     16: 
                     17: if ($zip->status == ZIPARCHIVE::ER_OK) {
                     18:        $zip->close();
                     19:        echo "ok\n";
                     20: } else {
                     21:        echo "failed\n";
                     22: }
                     23: ?>
                     24: --EXPECTF--
                     25: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>