diff options
Diffstat (limited to 'ext/phar/tests/rename.phpt')
-rw-r--r-- | ext/phar/tests/rename.phpt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/phar/tests/rename.phpt b/ext/phar/tests/rename.phpt deleted file mode 100644 index 6d3cc2c137..0000000000 --- a/ext/phar/tests/rename.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Phar: rename test ---SKIPIF-- -<?php if (!extension_loaded("phar")) print "skip"; ?> ---INI-- -phar.readonly=0 -phar.require_hash=0 ---FILE-- -<?php -$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; -$pname = 'phar://' . $fname; -$file = "<?php -Phar::mapPhar('hio'); -__HALT_COMPILER(); ?>"; - -$files = array(); -$files['a'] = 'a'; -include 'phar_test.inc'; -include $fname; - -echo file_get_contents($pname . '/a') . "\n"; -rename($pname . '/a', $pname . '/b'); -echo file_get_contents($pname . '/b') . "\n"; -echo file_get_contents($pname . '/a') . "\n"; -?> ---CLEAN-- -<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> ---EXPECTF-- -a -a - -Warning: file_get_contents(phar://%srename.phar.php/a): failed to open stream: phar error: "a" is not a file in phar "%srename.phar.php" in %srename.php on line %d
\ No newline at end of file |