xref: /PHP-8.1/ext/zip/tests/oo_close.phpt (revision 74859783)
1--TEST--
2zip::close() function
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7
8$dirname = __DIR__ . '/';
9$zip = new ZipArchive;
10if (!$zip->open($dirname . 'test.zip')) {
11    exit('failed');
12}
13
14if ($zip->status == ZIPARCHIVE::ER_OK) {
15    $zip->close();
16    echo "ok\n";
17} else {
18    echo "failed\n";
19}
20?>
21--EXPECT--
22ok
23