xref: /PHP-7.2/ext/phar/tests/phar_oo_012.phpt (revision 17ccbeec)
1--TEST--
2Phar object: unset file
3--SKIPIF--
4<?php if (!extension_loaded('phar')) die('skip'); ?>
5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6--INI--
7phar.readonly=0
8phar.require_hash=0
9--FILE--
10<?php
11
12$pharconfig = 0;
13
14require_once 'files/phar_oo_test.inc';
15
16$phar = new Phar($fname);
17$phar->setInfoClass('SplFileObject');
18
19$phar['f.php'] = 'hi';
20var_dump(isset($phar['f.php']));
21echo $phar['f.php'];
22echo "\n";
23unset($phar['f.php']);
24var_dump(isset($phar['f.php']));
25
26?>
27===DONE===
28--CLEAN--
29<?php
30unlink(dirname(__FILE__) . '/files/phar_oo_012.phar.php');
31__halt_compiler();
32?>
33--EXPECT--
34bool(true)
35hi
36bool(false)
37===DONE===
38