Skip to content
Browse files

unit tests MDL-19060 unified the two checks for CVS directories

  • Loading branch information...
1 parent dbc8d12 commit a757f4a2d7f36413d6da97e509c8e0112a2f2c09 Andrew Davis committed Nov 30, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/report/unittest/ex_simple_test.php
View
4 admin/report/unittest/ex_simple_test.php
@@ -55,8 +55,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) ||

0 comments on commit a757f4a

Please sign in to comment.
Something went wrong with that request. Please try again.