diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-08-08 21:31:50 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-08-08 21:31:50 +0000 |
commit | f268ada2f3a625daeae9db76d2b59ae86b08b858 (patch) | |
tree | e585b59c82bc769eed4457fe662dd0ee48809193 /pear | |
parent | 93b21c6ed4775468c3877e9d6583e852f310e1c7 (diff) | |
download | php-git-f268ada2f3a625daeae9db76d2b59ae86b08b858.tar.gz |
When skip condition is met, stop.
Diffstat (limited to 'pear')
-rw-r--r-- | pear/tests/pear_config.phpt | 1 | ||||
-rw-r--r-- | pear/tests/pear_config_1.1.phpt | 2 | ||||
-rw-r--r-- | pear/tests/pear_registry_1.1.phpt | 4 |
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-- |