diff options
author | Derky <derky@phpbb.com> | 2019-01-02 21:07:41 +0100 |
---|---|---|
committer | Derky <derky@phpbb.com> | 2019-01-02 21:07:41 +0100 |
commit | 409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99 (patch) | |
tree | 8d6e187343fe4d9b65b828438d9ff1b31e3302c8 /tests | |
parent | 186259cbbc98b9c4c326356ecc1576349f37fafd (diff) | |
parent | 14f9917db60b88bbf2d4d9923e2a2cee5766bbec (diff) | |
download | forums-409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99.tar forums-409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99.tar.gz forums-409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99.tar.bz2 forums-409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99.tar.xz forums-409bfafbf088b4ac194c4cc1b89c9c07e3f5ef99.zip |
Merge pull request #5485 from marc1706/ticket/15919
[ticket/15919] Don't run lint test against node_modules
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lint_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lint_test.php b/tests/lint_test.php index 70046bdfd2..8ab31f976c 100644 --- a/tests/lint_test.php +++ b/tests/lint_test.php @@ -67,6 +67,12 @@ class phpbb_lint_test extends phpbb_test_case { $files = array(); $dh = opendir($root); + + if ($dh === false) + { + return $files; + } + while (($filename = readdir($dh)) !== false) { if ($filename == '.' || $filename == '..') @@ -89,6 +95,7 @@ class phpbb_lint_test extends phpbb_test_case // 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 dirname(__FILE__) . '/../phpBB/vendor', + dirname(__FILE__) . '/../node_modules', ))) { $files = array_merge($files, $this->check($path)); |