cvs: php-src /pear/tests pear_installer1.phpt

From: Date: Sun, 14 Sep 2003 04:24:05 +0000
Subject: cvs: php-src /pear/tests pear_installer1.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12707@lists.php.net to get a copy of this message
cellog Sun Sep 14 00:24:05 2003 EDT Modified files: /php-src/pear/tests pear_installer1.phpt Log: simplify test, split into two Index: php-src/pear/tests/pear_installer1.phpt diff -u php-src/pear/tests/pear_installer1.phpt:1.2 php-src/pear/tests/pear_installer1.phpt:1.3 --- php-src/pear/tests/pear_installer1.phpt:1.2 Tue Sep 9 20:03:12 2003 +++ php-src/pear/tests/pear_installer1.phpt Sun Sep 14 00:24:05 2003 @@ -10,16 +10,6 @@ // no UI is needed for these tests $ui = false; $installer = new PEAR_Installer($ui); -$temp_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testinstallertemp'; -if (!is_dir($temp_path)) { - mkdir($temp_path); -} -// make the fake configuration -$config = serialize(array('master_server' => 'pear.php.net', 'php_dir' => $temp_path)); -touch($temp_path . DIRECTORY_SEPARATOR . 'user.conf'); -$fp = fopen($temp_path . DIRECTORY_SEPARATOR . 'user.conf', 'w'); -fwrite($fp, $config); -fclose($fp); echo "test extractDownloadFileName:\n"; echo 'existing file: '; echo $installer->extractDownloadFileName($temp_path . DIRECTORY_SEPARATOR . 'user.conf', @@ -74,8 +64,7 @@ echo "\ntest checkDeps 2:\n"; $res = ''; var_dump($installer->checkDeps($fakerel, $res)); -var_dump($res);unlink ($temp_path . DIRECTORY_SEPARATOR . 'user.conf'); -rmdir($temp_path); +var_dump($res); ?> --GET-- --POST--

« previous php.pear.cvs (#12707) next »