mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
[ticket/10716] Only lint on php 5.3+.
PHPBB3-10716
This commit is contained in:
parent
af2887f3a7
commit
4133fae99e
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ class phpbb_lint_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
public function test_lint()
|
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__) . '/..';
|
$root = dirname(__FILE__) . '/..';
|
||||||
$this->check($root);
|
$this->check($root);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue