summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-09-12 16:28:37 -0700
committerRuss Allbery <rra@stanford.edu>2008-09-12 16:28:37 -0700
commitd37ae91f8d89005d7672e56a1b47488569c3a75c (patch)
tree035eaff4987158dee8b17280ac92ac4c86adaff9 /php
parent37e44fc104870bb225e56a2a076a7e93e1c87da2 (diff)
PHP: fix skipping tests
Don't skip tests just because the module isn't loaded; if the module isn't loaded, something has gone horribly wrong. That also removes the syntax error in that part of the skip code which was preventing the skip code from checking whether remctld was running.
Diffstat (limited to 'php')
-rw-r--r--php/tests/002.phpt4
-rw-r--r--php/tests/003.phpt4
2 files changed, 4 insertions, 4 deletions
diff --git a/php/tests/002.phpt b/php/tests/002.phpt
index d50df72..5c99938 100644
--- a/php/tests/002.phpt
+++ b/php/tests/002.phpt
@@ -2,8 +2,8 @@
Check simplified remctl API
--SKIPIF--
<?php
- if (!extension_load("remctl")) print "skip";
- if (!file_exists("remctl-test.pid")) print "skip";
+ if (!file_exists("remctl-test.pid"))
+ echo "skip remctld not running";
?>
--FILE--
<?php
diff --git a/php/tests/003.phpt b/php/tests/003.phpt
index 715ecc7..94cc842 100644
--- a/php/tests/003.phpt
+++ b/php/tests/003.phpt
@@ -2,8 +2,8 @@
Check full remctl API
--SKIPIF--
<?php
- if (!extension_load("remctl")) print "skip";
- if (!file_exists("remctl-test.pid")) print "skip";
+ if (!file_exists("remctl-test.pid"))
+ echo "skip remctld not running";
?>
--FILE--
<?php