public static function RealIteratorTestCase::tearDownAfterClass in Database Sanitize 7
1 call to RealIteratorTestCase::tearDownAfterClass()
- RealIteratorTestCase::setUpBeforeClass in vendor/
symfony/ finder/ Tests/ Iterator/ RealIteratorTestCase.php
File
- vendor/
symfony/ finder/ Tests/ Iterator/ RealIteratorTestCase.php, line 61
Class
Namespace
Symfony\Component\Finder\Tests\IteratorCode
public static function tearDownAfterClass() {
$paths = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(self::$tmpDir, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::CHILD_FIRST);
foreach ($paths as $path) {
if ($path
->isDir()) {
if ($path
->isLink()) {
@unlink($path);
}
else {
@rmdir($path);
}
}
else {
@unlink($path);
}
}
}