]> granicus.if.org Git - php/commitdiff
When skip condition is met, stop.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 8 Aug 2004 21:31:50 +0000 (21:31 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 8 Aug 2004 21:31:50 +0000 (21:31 +0000)
pear/tests/pear_config.phpt
pear/tests/pear_config_1.1.phpt
pear/tests/pear_registry_1.1.phpt

index 7578a8ad8ef3d67bb65b1f3f8a5b263f9723e5d3..f98af7eade95f37184a742e33ee5090b4ddab785 100644 (file)
@@ -4,6 +4,7 @@ PEAR_Config
 <?php
 if (!getenv('PHP_PEAR_RUNTESTS')) {
     echo 'skip';
+    return;
 }
 include 'PEAR/Config.php';
 $pv = phpversion() . '';
index c7a13a56dadcaaa4e35fe7d43a8112e89ba7705f..50d5815ed3f7c7bb88c67e0e22567d06b3afb90a 100644 (file)
@@ -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';
index 5af8636072d2e94f3bb7c2783e41ebab616ed125..48bd27456aefbc7a59f348205a8092571ddc817f 100644 (file)
@@ -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--