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, 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);
}