From 70a852ebdcd43f894c545fed2b59ee1147829766 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 31 Oct 2003 22:51:43 +0000 Subject: [PATCH] fix test --- pear/tests/pear_installer1.phpt | 7 +++++++ 1 file changed, 7 insertions(+) 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-- -- 2.50.1