]> granicus.if.org Git - php/commitdiff
- Fix test
authorMarcus Boerger <helly@php.net>
Tue, 9 Jan 2007 03:03:47 +0000 (03:03 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 9 Jan 2007 03:03:47 +0000 (03:03 +0000)
ext/phar/tests/create_new_and_modify.phpt

index 445c256c335c5d81fa3fd988217ac82dbcf55511..27a2fb60e52498ff1bc334183e0f77be56a10bbc 100755 (executable)
@@ -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!