We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 546e600 + f0d4a53 commit dc53812Copy full SHA for dc53812
Unit.php
@@ -147,7 +147,8 @@ private function findFiles($dir): array
147
$files = [];
148
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
149
foreach ($iterator as $file) {
150
- if(isset($this->args['path']) || strpos($file->getPathname(), "vendor/") === false) {
+ if (fnmatch(static::PATTERN, $file->getFilename()) &&
151
+ (isset($this->args['path']) || strpos($file->getPathname(), "vendor/") === false)) {
152
$files[] = $file->getPathname();
153
}
154
0 commit comments