1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

- Fix test

This commit is contained in:
Marcus Boerger
2007-01-09 03:03:47 +00:00
parent 887a45e3e8
commit 3bfece705f
+4 -4
View File
@@ -13,15 +13,15 @@ $pname = 'phar://' . $fname;
@unlink($fname);
file_put_contents($pname . '/a.php', 'brand new!\n');
file_put_contents($pname . '/a.php', "brand new!\n");
$phar = new Phar($fname);
$sig1 = $phar->getSignature();
include $pname . '/a.php';
file_put_contents($pname .'/a.php', 'modified!\n');
file_put_contents($pname .'/b.php', 'another!\n');
file_put_contents($pname .'/a.php', "modified!\n");
file_put_contents($pname .'/b.php', "another!\n");
$phar = new Phar($fname);
$sig2 = $phar->getSignature();
@@ -38,9 +38,9 @@ include $pname . '/b.php';
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
--EXPECTF--
string(40) "%s"
brand new!
string(40) "%s"
string(40) "%s"
bool(true)
modified!
another!