]> granicus.if.org Git - php/commitdiff
Make run-tests.php PHP-5.4 compatible
authorBob Weinand <bobwei9@hotmail.com>
Thu, 12 Jun 2014 15:49:02 +0000 (18:49 +0300)
committerBob Weinand <bobwei9@hotmail.com>
Thu, 12 Jun 2014 15:49:02 +0000 (18:49 +0300)
tests/run-tests.php

index 77b3bcd26a8cd8349ad9e786ddd315c49dd73c8e..4ee0e1c59bbbe538cdd702e115175cd2a1f3c18b 100644 (file)
@@ -267,9 +267,11 @@ namespace phpdbg\testing {
                                $test = sprintf('%s/%s', $path, $file);
 
                                if (preg_match('~\.test$~', $test)) {
-                                       yield new Test($this->config, $test);
+                                       $tests[] = new Test($this->config, $test);
                                }
                        }
+                       
+                       return $tests;
                }
                
                /**
@@ -428,8 +430,7 @@ namespace phpdbg\testing {
                * 
                */
                public function getResult() {
-                       $options = sprintf(
-                               '-i%s -nqb', $this->file);
+                       $options = sprintf('-i%s -nqb', $this->file);
                        
                        if ($this->options) {
                                $options = sprintf(