4 // We want to avoid using symfony/filesystem in the isolation tests.
7 function removeDir($dir)
9 $files = array_diff(scandir($dir), ['.','..']);
10 foreach ($files as $file) {
11 if (is_dir("$dir/$file") && !is_link("$dir/$file")) {
12 $this->removeDir("$dir/$file");