]> granicus.if.org Git - php/commitdiff
-make it run again
authorMarcus Boerger <helly@php.net>
Sun, 23 Jun 2002 00:37:16 +0000 (00:37 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 23 Jun 2002 00:37:16 +0000 (00:37 +0000)
run-tests.php

index 41d72cc9c9b0fd91f89402cd2b7aed915fbb0a56..8ec8252ae7cfb8834c63c9fc4ff8233ea1b68c28 100755 (executable)
@@ -108,7 +108,7 @@ $test_files = array();
 $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 @@ if ($argc>1) {
 }
 
 // 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) {