diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-04 17:43:36 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-04 17:43:36 -0500 |
commit | 8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1 (patch) | |
tree | ca870d5e37e76528ac41adfa384b9569a223a528 /tests/lint_test.php | |
parent | 8897efe087195ba31920c6b3aadbe8ea1b393c12 (diff) | |
download | forums-8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1.tar forums-8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1.tar.gz forums-8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1.tar.bz2 forums-8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1.tar.xz forums-8ea52b56197cc9a234d6b0ce3ddd10820feb6dd1.zip |
[ticket/10716] Skip test if php is not in PATH.
PHPBB3-10716
Diffstat (limited to 'tests/lint_test.php')
-rw-r--r-- | tests/lint_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lint_test.php b/tests/lint_test.php index 67b7413cb4..d73ab7fedd 100644 --- a/tests/lint_test.php +++ b/tests/lint_test.php @@ -13,6 +13,14 @@ class phpbb_lint_test extends phpbb_test_case static public function setUpBeforeClass() { + $output = array(); + $status = 1; + exec('php -v', $output, $status); + if ($status) + { + self::markTestSkipped("php is not in PATH or broken: $output"); + } + self::$exclude = array( // PHP Fatal error: Cannot declare class Container because the name is already in use in /var/www/projects/phpbb3/tests/../phpBB/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1-1.php on line 20 // https://gist.github.com/e003913ffd493da63cbc |