Annotation of embedaddon/php/ext/phar/tests/cache_list/copyonwrite6.phar.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: copy-on-write test 6 [cache_list]
3: --INI--
4: default_charset=UTF-8
5: phar.cache_list={PWD}/copyonwrite6.phar.php
6: phar.readonly=0
7: open_basedir=
8: --SKIPIF--
9: <?php if (!extension_loaded("phar")) die("skip"); ?>
10: <?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip PHP 5.3+ required"); ?>
11: --FILE_EXTERNAL--
12: files/write6.phar
13: --CLEAN--
14: <?php
15: unlink(dirname(__FILE__) . '/copyonwrite6/file1');
16: unlink(dirname(__FILE__) . '/copyonwrite6/file2');
17: rmdir(dirname(__FILE__) . '/copyonwrite6');
18: ?>
19: --EXPECTF--
20: array(2) {
21: ["file1"]=>
22: string(%d) "%sfile1"
23: ["file2"]=>
24: string(%d) "%sfile2"
25: }
26: phar://%scopyonwrite6.phar.php%cfile1 file1
27: phar://%scopyonwrite6.phar.php%cfile2 file2
28: phar://%scopyonwrite6.phar.php%chi hi
29: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>