more unit tests for helpers/FileHelper::findFiles using new wildcard exceptions matching

This commit is contained in:
John Was
2014-01-26 15:02:26 +01:00
parent 6a84bfffba
commit b2b10d1685
2 changed files with 52 additions and 16 deletions

View File

@ -259,6 +259,7 @@ class BaseFileHelper
if (!is_dir($dir)) {
throw new InvalidParamException('The dir argument must be a directory.');
}
$dir = rtrim($dir, DIRECTORY_SEPARATOR);
if (!isset($options['basePath'])) {
$options['basePath'] = realpath($dir);
// this should also be done only once