]> granicus.if.org Git - php/commitdiff
fix test
authorGreg Beaver <cellog@php.net>
Fri, 31 Oct 2003 22:51:43 +0000 (22:51 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 31 Oct 2003 22:51:43 +0000 (22:51 +0000)
pear/tests/pear_installer1.phpt

index fe2516202b37eca81a726b15b2182b9600405c30..90c710cba754503a573178046b0b81e164fa9273 100644 (file)
@@ -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--