diff options
| author | Greg Beaver <cellog@php.net> | 2003-11-30 22:24:14 +0000 |
|---|---|---|
| committer | Greg Beaver <cellog@php.net> | 2003-11-30 22:24:14 +0000 |
| commit | 44e2b4269232f6f6f7040071a5519a15d3fd120c (patch) | |
| tree | 9bd486a69582a3a2315a3f7cd765bffab7384adb | |
| parent | 0b24e0a404e0ef37983e010dbb036af3c2856ae9 (diff) | |
| download | php-git-44e2b4269232f6f6f7040071a5519a15d3fd120c.tar.gz | |
tweak tests
| -rw-r--r-- | pear/tests/pear_dependency_checkExtension.phpt | 5 | ||||
| -rw-r--r-- | pear/tests/pear_dependency_checkPackage.phpt | 3 | ||||
| -rw-r--r-- | pear/tests/pear_dependency_checkPackageUninstall.phpt | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/pear/tests/pear_dependency_checkExtension.phpt b/pear/tests/pear_dependency_checkExtension.phpt index 29eecc1f94..37d808e9e4 100644 --- a/pear/tests/pear_dependency_checkExtension.phpt +++ b/pear/tests/pear_dependency_checkExtension.phpt @@ -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'); } ?> diff --git a/pear/tests/pear_dependency_checkPackage.phpt b/pear/tests/pear_dependency_checkPackage.phpt index 75e29d4e51..1bb2120455 100644 --- a/pear/tests/pear_dependency_checkPackage.phpt +++ b/pear/tests/pear_dependency_checkPackage.phpt @@ -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'); } ?> diff --git a/pear/tests/pear_dependency_checkPackageUninstall.phpt b/pear/tests/pear_dependency_checkPackageUninstall.phpt index 1c1434f1ab..0206733a1f 100644 --- a/pear/tests/pear_dependency_checkPackageUninstall.phpt +++ b/pear/tests/pear_dependency_checkPackageUninstall.phpt @@ -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'); } ?> |
