private function tryLoadTests($path, $pattern = self::TEST_PATTERN)
{
if (preg_match($pattern, $path)) {
if ($this->excludingFiles) {
$this->excludedFiles[$path] = $path;
} elseif (!array_key_exists($path, $this->excludedFiles)) {
$this->files[] = $path;
}
}
if (!preg_match(self::$dotPattern, $path) && is_dir($path)) {
$this->loadDir($path, $pattern);
}
}