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 56170a0 commit 52ac5a7Copy full SHA for 52ac5a7
tests/BenchmarkTest.php
@@ -31,7 +31,11 @@ function clearCache() {
31
$files = glob(__DIR__ . '/../vendor/orchestra/testbench-core/laravel/storage/framework/views/*');
32
foreach ($files as $file) {
33
if (!str_ends_with($file, '.gitignore')) {
34
- unlink($file);
+ if (is_dir($file)) {
35
+ rmdir($file);
36
+ } else {
37
+ unlink($file);
38
+ }
39
}
40
41
0 commit comments