Skip to content

Commit 52ac5a7

Browse files
committed
wip
1 parent 56170a0 commit 52ac5a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/BenchmarkTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ function clearCache() {
3131
$files = glob(__DIR__ . '/../vendor/orchestra/testbench-core/laravel/storage/framework/views/*');
3232
foreach ($files as $file) {
3333
if (!str_ends_with($file, '.gitignore')) {
34-
unlink($file);
34+
if (is_dir($file)) {
35+
rmdir($file);
36+
} else {
37+
unlink($file);
38+
}
3539
}
3640
}
3741
}

0 commit comments

Comments
 (0)