private function ClassMapGeneratorTest::clean in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php \Symfony\Component\ClassLoader\Tests\ClassMapGeneratorTest::clean()
Parameters
string $file:
1 call to ClassMapGeneratorTest::clean()
- ClassMapGeneratorTest::testDump in vendor/
symfony/ class-loader/ Tests/ ClassMapGeneratorTest.php - @dataProvider getTestCreateMapTests
File
- vendor/
symfony/ class-loader/ Tests/ ClassMapGeneratorTest.php, line 33
Class
Namespace
Symfony\Component\ClassLoader\TestsCode
private function clean($file) {
if (is_dir($file) && !is_link($file)) {
$dir = new \FilesystemIterator($file);
foreach ($dir as $childFile) {
$this
->clean($childFile);
}
rmdir($file);
}
else {
unlink($file);
}
}