1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext/phar/tests/cache_list/copyonwrite5.phar.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

28 lines
558 B
PHP

--TEST--
Phar: copy-on-write test 5 [cache_list]
--INI--
default_charset=UTF-8
phar.cache_list={PWD}/copyonwrite5.phar.php
phar.readonly=0
--EXTENSIONS--
phar
--FILE_EXTERNAL--
files/write5.phar
--CLEAN--
<?php
unlink(__DIR__ . '/copyonwrite5/file1');
unlink(__DIR__ . '/copyonwrite5/file2');
rmdir(__DIR__ . '/copyonwrite5');
?>
--EXPECTF--
array(2) {
["file1"]=>
string(%d) "%sfile1"
["file2"]=>
string(%d) "%sfile2"
}
phar://%scopyonwrite5.phar.php%cfile1 file1
phar://%scopyonwrite5.phar.php%cfile2 file2
phar://%scopyonwrite5.phar.php%chi hi
ok