com php-src: Make run-tests.php PHP-5.4 compatible: tests/run-tests.php

From: Date: Thu, 12 Jun 2014 15:49:02 +0000
Subject: com php-src: Make run-tests.php PHP-5.4 compatible: tests/run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78883@lists.php.net to get a copy of this message
Commit: d337fb0b62cd8abbe74931d9bc22d4ae50509719 Author: Bob Weinand <bobwei9@hotmail.com> Thu, 12 Jun 2014 18:49:02 +0300 Parents: 65c2001acd6dcc178efdd635c009daea382543df Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d337fb0b62cd8abbe74931d9bc22d4ae50509719 Log: Make run-tests.php PHP-5.4 compatible Changed paths: M tests/run-tests.php Diff: diff --git a/tests/run-tests.php b/tests/run-tests.php index 77b3bcd..4ee0e1c 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(

« previous php.cvs (#78883) next »