protected function TestCase::ensureDirectoryExistsAndClear in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php \Composer\Installers\Test\TestCase::ensureDirectoryExistsAndClear()
1 call to TestCase::ensureDirectoryExistsAndClear()
- InstallerTest::setUp in vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ InstallerTest.php - setUp
File
- vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ TestCase.php, line 56
Class
Namespace
Composer\Installers\TestCode
protected function ensureDirectoryExistsAndClear($directory) {
$fs = new Filesystem();
if (is_dir($directory)) {
$fs
->removeDirectory($directory);
}
mkdir($directory, 0777, true);
}