]> granicus.if.org Git - php/commitdiff
- Fix tests
authorMarcus Boerger <helly@php.net>
Sun, 28 Jan 2007 21:21:04 +0000 (21:21 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 28 Jan 2007 21:21:04 +0000 (21:21 +0000)
ext/phar/tests/phar_commitwrite.phpt
ext/phar/tests/phar_stub.phpt
ext/phar/tests/phar_stub_write.phpt

index 890c83de043a4b017a33134a615fdcb435559794..7acfdec1a3925177c57121f185b21890eaa9daf9 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Phar::commitWrite()
+Phar::commit()
 --SKIPIF--
 <?php if (!extension_loaded("phar")) print "skip"; ?>
 --INI--
@@ -9,9 +9,9 @@ phar.readonly=0
 <?php
 $p = new Phar(dirname(__FILE__) . '/brandnewphar.phar', 0, 'brandnewphar.phar');
 $p['file1.txt'] = 'hi';
-$p->commitWrite();
+$p->commit();
 var_dump($p->getStub());
-$p->commitWrite("<?php
+$p->commit("<?php
 function __autoload(\$class)
 {
     include 'phar://' . str_replace('_', '/', \$class);
index 772c8a5ddb85e4a04dc2e91eea24c7ec7e4ca737..1b4e1cb85e70884e7c8f456ae2b901427d61c3d4 100644 (file)
@@ -27,7 +27,7 @@ $phar = new Phar($fname);
 $file = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
 
 //// 2
-$phar->commitWrite($file);
+$phar->commit($file);
 $fp = fopen($fname, 'rb');
 echo fread($fp, strlen($file)) . "\n";
 fclose($fp);
@@ -40,7 +40,7 @@ fclose($fp);
 $fp = fopen($fname2, 'rb');
 
 //// 3
-$phar->commitWrite($fp);
+$phar->commit($fp);
 fclose($fp);
 
 $fp = fopen($fname, 'rb');
@@ -55,7 +55,7 @@ echo file_get_contents($fname2) . "\n";
 $fp = fopen($fname2, 'rb');
 
 //// 4
-$phar->commitWrite($fp, strlen($file));
+$phar->commit($fp, strlen($file));
 fclose($fp);
 
 $fp = fopen($fname, 'rb');
index 0dad58cfff0711d0f4753c0110eaebe73619caf4..ed49cd0e20cf4aeada27552c742939e278c73009 100755 (executable)
@@ -25,7 +25,7 @@ var_dump($phar->getStub());
 var_dump($phar->getStub() == $stub);
 
 $stub = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
-$phar->commitWrite($stub);
+$phar->commit($stub);
 var_dump($phar->getStub());
 var_dump($phar->getStub() == $stub);