From 1259c3f17ab5c74ece72a41864d6e13b1a2fd93f Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 28 Jan 2007 21:21:04 +0000 Subject: [PATCH] - Fix tests --- ext/phar/tests/phar_commitwrite.phpt | 6 +++--- ext/phar/tests/phar_stub.phpt | 6 +++--- ext/phar/tests/phar_stub_write.phpt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/phar/tests/phar_commitwrite.phpt b/ext/phar/tests/phar_commitwrite.phpt index 890c83de04..7acfdec1a3 100644 --- a/ext/phar/tests/phar_commitwrite.phpt +++ b/ext/phar/tests/phar_commitwrite.phpt @@ -1,5 +1,5 @@ --TEST-- -Phar::commitWrite() +Phar::commit() --SKIPIF-- --INI-- @@ -9,9 +9,9 @@ phar.readonly=0 commitWrite(); +$p->commit(); var_dump($p->getStub()); -$p->commitWrite("commit("'; //// 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'); diff --git a/ext/phar/tests/phar_stub_write.phpt b/ext/phar/tests/phar_stub_write.phpt index 0dad58cfff..ed49cd0e20 100755 --- a/ext/phar/tests/phar_stub_write.phpt +++ b/ext/phar/tests/phar_stub_write.phpt @@ -25,7 +25,7 @@ var_dump($phar->getStub()); var_dump($phar->getStub() == $stub); $stub = ''; -$phar->commitWrite($stub); +$phar->commit($stub); var_dump($phar->getStub()); var_dump($phar->getStub() == $stub); -- 2.50.1