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.
1 parent 68307cf commit f0d4a53Copy full SHA for f0d4a53
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