summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-08 21:31:50 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-08 21:31:50 +0000
commitf268ada2f3a625daeae9db76d2b59ae86b08b858 (patch)
treee585b59c82bc769eed4457fe662dd0ee48809193 /pear
parent93b21c6ed4775468c3877e9d6583e852f310e1c7 (diff)
downloadphp-git-f268ada2f3a625daeae9db76d2b59ae86b08b858.tar.gz
When skip condition is met, stop.
Diffstat (limited to 'pear')
-rw-r--r--pear/tests/pear_config.phpt1
-rw-r--r--pear/tests/pear_config_1.1.phpt2
-rw-r--r--pear/tests/pear_registry_1.1.phpt4
3 files changed, 7 insertions, 0 deletions
diff --git a/pear/tests/pear_config.phpt b/pear/tests/pear_config.phpt
index 7578a8ad8e..f98af7eade 100644
--- a/pear/tests/pear_config.phpt
+++ b/pear/tests/pear_config.phpt
@@ -4,6 +4,7 @@ PEAR_Config
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
+ return;
}
include 'PEAR/Config.php';
$pv = phpversion() . '';
diff --git a/pear/tests/pear_config_1.1.phpt b/pear/tests/pear_config_1.1.phpt
index c7a13a56da..50d5815ed3 100644
--- a/pear/tests/pear_config_1.1.phpt
+++ b/pear/tests/pear_config_1.1.phpt
@@ -4,12 +4,14 @@ PEAR_Config v1.1
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
+ return;
}
include_once 'PEAR/Config.php';
$pv = phpversion() . '';
$av = $pv{0} == '4' ? 'apiversion' : 'apiVersion';
if (!in_array($av, get_class_methods('PEAR_Config'))) {
echo 'skip';
+ return;
}
if (PEAR_Config::apiVersion() != '1.1') {
echo 'skip';
diff --git a/pear/tests/pear_registry_1.1.phpt b/pear/tests/pear_registry_1.1.phpt
index 5af8636072..48bd27456a 100644
--- a/pear/tests/pear_registry_1.1.phpt
+++ b/pear/tests/pear_registry_1.1.phpt
@@ -4,20 +4,24 @@ PEAR_Registry v1.1
<?php
if (!getenv('PHP_PEAR_RUNTESTS')) {
echo 'skip';
+ return;
}
$statedir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'registry_tester';
if (file_exists($statedir)) {
// don't delete existing directories!
echo 'skip';
+ return;
}
include_once 'PEAR/Registry.php';
$pv = phpversion() . '';
$av = $pv{0} == '4' ? 'apiversion' : 'apiVersion';
if (!in_array($av, get_class_methods('PEAR_Registry'))) {
echo 'skip';
+ return;
}
if (PEAR_Registry::apiVersion() != '1.1') {
echo 'skip';
+ return;
}
?>
--FILE--