diff options
Diffstat (limited to 'ext/phar/tests/phar_commitwrite.phpt')
-rw-r--r-- | ext/phar/tests/phar_commitwrite.phpt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/phar/tests/phar_commitwrite.phpt b/ext/phar/tests/phar_commitwrite.phpt index 8d7068f19a..9671737272 100644 --- a/ext/phar/tests/phar_commitwrite.phpt +++ b/ext/phar/tests/phar_commitwrite.phpt @@ -7,7 +7,7 @@ phar.require_hash=0 phar.readonly=0 --FILE-- <?php -$p = new Phar(dirname(__FILE__) . '/brandnewphar.phar', 0, 'brandnewphar.phar'); +$p = new Phar(dirname(__FILE__) . '/phar_commitwrite.phar', 0, 'phar_commitwrite.phar'); $p['file1.txt'] = 'hi'; $p->stopBuffering(); var_dump(strlen($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()); @@ -25,18 +25,18 @@ var_dump($p->getStub()); ===DONE=== --CLEAN-- <?php -unlink(dirname(__FILE__) . '/brandnewphar.phar'); +unlink(dirname(__FILE__) . '/phar_commitwrite.phar'); __HALT_COMPILER(); ?> ---EXPECT-- +--EXPECTF-- int(6641) -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(); ?> " ===DONE=== |