Skip to content

Commit

Permalink
unit tests MDL-19060 unified the two checks for CVS directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed Nov 30, 2009
1 parent d850def commit 2b4d40c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/report/unittest/ex_simple_test.php
Expand Up @@ -61,8 +61,8 @@ function _recurseFolders($path) {
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)) {
Expand Down

0 comments on commit 2b4d40c

Please sign in to comment.