tweak tests

This commit is contained in:
Greg Beaver 2003-11-30 22:24:14 +00:00
parent 0b24e0a404
commit 44e2b42692
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,5 @@
--TEST--
PEAR_Dependency::checkPackageUninstall() test
PEAR_Dependency::checkExtension() test
--SKIPIF--
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
@ -55,6 +55,7 @@ if (!$notloaded || !$loaded) {
--FILE--
<?php
@mkdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
require_once "PEAR/Registry.php";
require_once "PEAR/Dependency.php";
@ -221,6 +222,8 @@ function cleanall()
unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent);
}
}
closedir($dp);
rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
}
?>

View File

@ -11,6 +11,7 @@ if (!getenv('PHP_PEAR_RUNTESTS')) {
require_once "PEAR/Registry.php";
require_once "PEAR/Dependency.php";
mkdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
// snarfed from pear_registry.phpt
$reg = new PEAR_Registry;
$reg->statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp';
@ -200,6 +201,8 @@ function cleanall()
unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent);
}
}
closedir($dp);
rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
}
?>

View File

@ -14,6 +14,7 @@ require_once "PEAR/Dependency.php";
// snarfed from pear_registry.phpt
$reg = new PEAR_Registry;
@mkdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
$reg->statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp';
$files1 = array(
@ -149,6 +150,8 @@ function cleanall()
unlink(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp' . DIRECTORY_SEPARATOR . $ent);
}
}
closedir($dp);
rmdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'checkPackagetmp');
}
?>