1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/11699] Properly exclude the .git directory. Namely missing dot prefix.

PHPBB3-11699
This commit is contained in:
Andreas Fischer 2013-11-29 14:00:55 +01:00
parent 97b1d70a37
commit 0834a749e7

View File

@ -23,6 +23,7 @@ class phpbb_lint_test extends phpbb_test_case
} }
self::$exclude = array( self::$exclude = array(
dirname(__FILE__) . '/../.git',
dirname(__FILE__) . '/../build/new_version', dirname(__FILE__) . '/../build/new_version',
dirname(__FILE__) . '/../build/old_versions', dirname(__FILE__) . '/../build/old_versions',
// 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 // 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
@ -47,7 +48,7 @@ class phpbb_lint_test extends phpbb_test_case
$dh = opendir($root); $dh = opendir($root);
while (($filename = readdir($dh)) !== false) while (($filename = readdir($dh)) !== false)
{ {
if ($filename == '.' || $filename == '..' || $filename == 'git') if ($filename == '.' || $filename == '..')
{ {
continue; continue;
} }