diff --git a/tests/Integration/Util/IntegrationTestCase.php b/tests/Integration/Util/IntegrationTestCase.php index fd481ade..a23066ef 100644 --- a/tests/Integration/Util/IntegrationTestCase.php +++ b/tests/Integration/Util/IntegrationTestCase.php @@ -105,7 +105,7 @@ protected function deleteDir($dir) $links = array_filter( $files, function ($file) { - return $file->getPath() !== $file->getRealPath(); + return $file->getPath() !== $file->getRealPath() && ! is_dir( $file->getPath() ); } );