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