summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-06-12 18:49:02 +0300
committerBob Weinand <bobwei9@hotmail.com>2014-06-12 18:49:02 +0300
commitd337fb0b62cd8abbe74931d9bc22d4ae50509719 (patch)
tree55f8725bd1aad52f6b30a3566c04385a5c30cf95
parent65c2001acd6dcc178efdd635c009daea382543df (diff)
downloadphp-git-d337fb0b62cd8abbe74931d9bc22d4ae50509719.tar.gz
Make run-tests.php PHP-5.4 compatible
-rw-r--r--tests/run-tests.php7
1 files changed, 4 insertions, 3 deletions
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(