From: Greg Beaver Date: Fri, 31 Oct 2003 22:51:43 +0000 (+0000) Subject: fix test X-Git-Tag: php-5.0.0b3RC1~805 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70a852ebdcd43f894c545fed2b59ee1147829766;p=php fix test --- diff --git a/pear/tests/pear_installer1.phpt b/pear/tests/pear_installer1.phpt index fe2516202b..90c710cba7 100644 --- a/pear/tests/pear_installer1.phpt +++ b/pear/tests/pear_installer1.phpt @@ -11,6 +11,11 @@ if (!getenv('PHP_PEAR_RUNTESTS')) { require_once "PEAR/Installer.php"; +$temp_path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'testinstallertemp'; +if (!is_dir($temp_path)) { + mkdir($temp_path); +} +touch($temp_path . DIRECTORY_SEPARATOR . 'user.conf'); // no UI is needed for these tests $ui = false; $installer = new PEAR_Installer($ui); @@ -70,6 +75,8 @@ 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); ?> --GET-- --POST--