Skip to content

Commit 5af5598

Browse files
committed
chore: scan tests/_support
1 parent bfd952c commit 5af5598

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

psalm_autoload.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
$helperDirs = [
88
'system/Helpers',
9+
'tests/_support',
910
];
1011

1112
foreach ($helperDirs as $dir) {
@@ -23,4 +24,23 @@
2324
}
2425
}
2526

27+
$dirs = [
28+
'tests/_support',
29+
];
30+
31+
foreach ($dirs as $dir) {
32+
$dir = __DIR__ . '/' . $dir;
33+
if (! is_dir($dir)) {
34+
continue;
35+
}
36+
37+
chdir($dir);
38+
39+
foreach (glob('*.php') as $filename) {
40+
$filePath = realpath($dir . '/' . $filename);
41+
42+
require_once $filePath;
43+
}
44+
}
45+
2646
chdir(__DIR__);

0 commit comments

Comments
 (0)