cvs: php4 / run-tests.php
| From: | Marcus B�rger | Date: | Sun, 23 Jun 2002 00:37:16 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12456@lists.php.net to get a copy of this message | ||
helly Sat Jun 22 20:37:16 2002 EDT
Modified files:
/php4 run-tests.php
Log:
-make it run again
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.49 php4/run-tests.php:1.50
--- php4/run-tests.php:1.49 Sun Jun 16 06:58:54 2002
+++ php4/run-tests.php Sat Jun 22 20:37:16 2002
@@ -108,7 +108,7 @@
$test_results = array();
// If parameters given assume they represent selected tests to run.
-if ($argc>1) {
+if (isset($argc) && $argc>1) {
for ($i=1; $i<$argc; $i++) {
$testfile = realpath($argv[$i]);
$test_to_run[$testfile] = 1;
@@ -116,7 +116,8 @@
}
// Compile a list of all test files (*.phpt).
-$module_of_test = $test_files = array();
+$test_files = array();
+$module_of_test = array();
find_files(getcwd());
function find_files($dir) {