summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(