mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
unit tests MDL-19060 unified the two checks for CVS directories
This commit is contained in:
parent
d850def3ed
commit
2b4d40c9ac
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ class AutoGroupTest extends TestSuite {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$file_path = $path . '/' . $file;
|
$file_path = $path . '/' . $file;
|
||||||
if (is_dir($file_path) && !preg_match('/CVS/i',$file) && !preg_match('/.git/i',$file)) {
|
if (is_dir($file_path)) {
|
||||||
if ($file != 'CVS' && !in_array($file_path, $this->ignorefolders)) {
|
if ($file != 'CVS' && $file != '.git' && !in_array($file_path, $this->ignorefolders)) {
|
||||||
$this->_recurseFolders($file_path);
|
$this->_recurseFolders($file_path);
|
||||||
}
|
}
|
||||||
} elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path)) {
|
} elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue