mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
unit tests MDL-19060 unified the two checks for CVS directories
This commit is contained in:
parent
d850def3ed
commit
2b4d40c9ac
@ -61,8 +61,8 @@ class AutoGroupTest extends TestSuite {
|
||||
continue;
|
||||
}
|
||||
$file_path = $path . '/' . $file;
|
||||
if (is_dir($file_path) && !preg_match('/CVS/i',$file) && !preg_match('/.git/i',$file)) {
|
||||
if ($file != 'CVS' && !in_array($file_path, $this->ignorefolders)) {
|
||||
if (is_dir($file_path)) {
|
||||
if ($file != 'CVS' && $file != '.git' && !in_array($file_path, $this->ignorefolders)) {
|
||||
$this->_recurseFolders($file_path);
|
||||
}
|
||||
} elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user