Annotation of embedaddon/php/ext/phar/tests/phar_oo_011.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar object: add file
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.readonly=0
8: phar.require_hash=0
9: --FILE--
10: <?php
11:
12: $pharconfig = 0;
13:
14: require_once 'files/phar_oo_test.inc';
15:
16: $phar = new Phar($fname);
17: $phar->setInfoClass('SplFileObject');
18:
19: $phar['hi/f.php'] = 'hi';
20: var_dump(isset($phar['hi']));
21: var_dump(isset($phar['hi/f.php']));
22: echo $phar['hi/f.php'];
23: echo "\n";
24:
25: ?>
26: ===DONE===
27: --CLEAN--
28: <?php
29: unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
30: __halt_compiler();
31: ?>
32: --EXPECT--
33: bool(true)
34: bool(true)
35: hi
36: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>