summaryrefslogtreecommitdiff
path: root/ext/phar/tests/tar/phar_commitwrite.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/tar/phar_commitwrite.phpt')
-rw-r--r--ext/phar/tests/tar/phar_commitwrite.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/phar/tests/tar/phar_commitwrite.phpt b/ext/phar/tests/tar/phar_commitwrite.phpt
index cdfc449c1c..1f6d744917 100644
--- a/ext/phar/tests/tar/phar_commitwrite.phpt
+++ b/ext/phar/tests/tar/phar_commitwrite.phpt
@@ -7,7 +7,7 @@ phar.require_hash=0
phar.readonly=0
--FILE--
<?php
-$p = new Phar(dirname(__FILE__) . '/brandnewphar.phar.tar', 0, 'brandnewphar.phar');
+$p = new Phar(dirname(__FILE__) . '/phar_commitwrite.phar.tar', 0, 'phar_commitwrite.phar');
$p['file1.txt'] = 'hi';
$p->stopBuffering();
var_dump($p->getStub());
@@ -16,8 +16,8 @@ function __autoload(\$class)
{
include 'phar://' . str_replace('_', '/', \$class);
}
-Phar::mapPhar('brandnewphar.phar');
-include 'phar://brandnewphar.phar/startup.php';
+Phar::mapPhar('phar_commitwrite.phar');
+include 'phar://phar_commitwrite.phar/startup.php';
__HALT_COMPILER();
?>");
var_dump($p->getStub());
@@ -26,18 +26,18 @@ var_dump($p->isFileFormat(Phar::TAR));
===DONE===
--CLEAN--
<?php
-unlink(dirname(__FILE__) . '/brandnewphar.phar.tar');
+unlink(dirname(__FILE__) . '/phar_commitwrite.phar.tar');
?>
---EXPECT--
+--EXPECTF--
string(60) "<?php // tar-based phar archive stub file
__HALT_COMPILER();"
-string(200) "<?php
+string(%d) "<?php
function __autoload($class)
{
include 'phar://' . str_replace('_', '/', $class);
}
-Phar::mapPhar('brandnewphar.phar');
-include 'phar://brandnewphar.phar/startup.php';
+Phar::mapPhar('phar_commitwrite.phar');
+include 'phar://phar_commitwrite.phar/startup.php';
__HALT_COMPILER(); ?>
"
bool(true)