aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lint_test.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-04 13:58:14 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-04 13:58:14 -0500
commit4133fae99ec4146a01c67f6a6b3020020d1c6464 (patch)
tree731e8d5dabd304f6ec314dedc286d9dfc267f594 /tests/lint_test.php
parentaf2887f3a7f27b33c2ecd14d4baab846b71ddb62 (diff)
downloadforums-4133fae99ec4146a01c67f6a6b3020020d1c6464.tar
forums-4133fae99ec4146a01c67f6a6b3020020d1c6464.tar.gz
forums-4133fae99ec4146a01c67f6a6b3020020d1c6464.tar.bz2
forums-4133fae99ec4146a01c67f6a6b3020020d1c6464.tar.xz
forums-4133fae99ec4146a01c67f6a6b3020020d1c6464.zip
[ticket/10716] Only lint on php 5.3+.
PHPBB3-10716
Diffstat (limited to 'tests/lint_test.php')
-rw-r--r--tests/lint_test.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lint_test.php b/tests/lint_test.php
index 57c78ae809..1642b571dd 100644
--- a/tests/lint_test.php
+++ b/tests/lint_test.php
@@ -11,6 +11,11 @@ class phpbb_lint_test extends phpbb_test_case
{
public function test_lint()
{
+ if (version_compare(PHP_VERSION, '5.3.0', '<'))
+ {
+ $this->markTestSkipped('phpBB uses PHP 5.3 syntax in some files, linting on PHP < 5.3 will fail');
+ }
+
$root = dirname(__FILE__) . '/..';
$this->check($root);
}