Annotation of embedaddon/php/ext/phar/tests/phar_oo_010.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar object: ArrayAccess and isset
3: --SKIPIF--
4: <?php if (!extension_loaded('phar')) die('skip'); ?>
5: <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6: --INI--
7: phar.require_hash=0
8: --FILE--
9: <?php
10:
11: $pharconfig = 0;
12:
13: require_once 'files/phar_oo_test.inc';
14:
15: $phar = new Phar($fname);
16:
17: var_dump(isset($phar['a.php']));
18: var_dump(isset($phar['b.php']));
19: var_dump(isset($phar['b/c.php']));
20: var_dump(isset($phar['b/d.php']));
21: var_dump(isset($phar['e.php']));
22:
23: ?>
24: ===DIR===
25: <?php
26: var_dump(isset($phar['b']));
27: ?>
28: ===NA===
29: <?php
30: var_dump(isset($phar['a']));
31: var_dump(isset($phar['b/c']));
32: var_dump(isset($phar[12]));
33: var_dump(isset($phar['b']));
34:
35: ?>
36: ===DONE===
37: --CLEAN--
38: <?php
39: unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
40: __halt_compiler();
41: ?>
42: --EXPECTF--
43: bool(true)
44: bool(true)
45: bool(true)
46: bool(true)
47: bool(true)
48: ===DIR===
49: bool(true)
50: ===NA===
51: bool(false)
52: bool(false)
53: bool(false)
54: bool(true)
55: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>