aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lint_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lint_test.php')
-rw-r--r--tests/lint_test.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lint_test.php b/tests/lint_test.php
index d73ab7fedd..905067072d 100644
--- a/tests/lint_test.php
+++ b/tests/lint_test.php
@@ -15,9 +15,10 @@ class phpbb_lint_test extends phpbb_test_case
{
$output = array();
$status = 1;
- exec('php -v', $output, $status);
+ exec('(php -v) 2>&1', $output, $status);
if ($status)
{
+ $output = implode("\n", $output);
self::markTestSkipped("php is not in PATH or broken: $output");
}
@@ -61,7 +62,7 @@ class phpbb_lint_test extends phpbb_test_case
else if (substr($filename, strlen($filename)-4) == '.php')
{
// assume php binary is called php and it is in PATH
- $cmd = 'php -l ' . escapeshellarg($path);
+ $cmd = '(php -l ' . escapeshellarg($path) . ') 2>&1';
$output = array();
$status = 1;
exec($cmd, $output, $status);