From: Bob Weinand Date: Thu, 12 Jun 2014 15:49:02 +0000 (+0300) Subject: Make run-tests.php PHP-5.4 compatible X-Git-Tag: php-5.6.0RC1~1^2~21^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d337fb0b62cd8abbe74931d9bc22d4ae50509719;p=php Make run-tests.php PHP-5.4 compatible --- diff --git a/tests/run-tests.php b/tests/run-tests.php index 77b3bcd26a..4ee0e1c59b 100644 --- a/tests/run-tests.php +++ b/tests/run-tests.php @@ -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(