mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
tweak tests
This commit is contained in:
parent
0b24e0a404
commit
44e2b42692
@ -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');
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user