Skip to content

Commit 2d11f60

Browse files
authored
Update ListCustomLoggersCommand.php (#4)
Exclude further test files
1 parent a9dade5 commit 2d11f60

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Console/ListCustomLoggersCommand.php

+8
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ protected function getOptimisedAutoloadClassMap(): array
180180
unset($classMap[$className]); // Filter out any test framework results
181181
continue;
182182
}
183+
if (strpos($filePath, '/Test/') !== false) {
184+
unset($classMap[$className]); // Filter out any test framework results
185+
continue;
186+
}
187+
if (strpos($className, '\\Test\\') !== false) {
188+
unset($classMap[$className]); // Filter out any test framework results
189+
continue;
190+
}
183191
$realPath = realpath($filePath);
184192
if (!$realPath) {
185193
unset($classMap[$className]); // Could not work out realpath

0 commit comments

Comments
 (0)