1
0
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:
Bob Weinand
2014-06-12 18:49:02 +03:00
parent 65c2001acd
commit d337fb0b62
+4 -3
View File
@@ -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(