mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
Make run-tests.php PHP-5.4 compatible
This commit is contained in:
+4
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user