| 1 | <?php |
||
| 11 | class Cleaner |
||
| 12 | { |
||
| 13 | /** @var TempDirectory */ |
||
| 14 | private $tempDirectory; |
||
| 15 | |||
| 16 | /** @var PHPUnitConfig */ |
||
| 17 | private $phpunitConfig; |
||
| 18 | 15 | ||
| 19 | /** |
||
| 20 | 15 | * Cleaner constructor. |
|
| 21 | 15 | * @param TempDirectory $tempDirectory |
|
| 22 | * @param PHPUnitConfig $phpunitConfig |
||
| 23 | 15 | */ |
|
| 24 | public function __construct(TempDirectory $tempDirectory, PHPUnitConfig $phpunitConfig) |
||
| 29 | |||
| 30 | public function purgeCurrentTempDir() |
||
| 34 | 49 | ||
| 35 | public function deleteTempConfig() |
||
| 42 | 49 | ||
| 43 | 49 | /** |
|
| 44 | * @param string $dir |
||
| 45 | 49 | * @return bool True if the directory existed and it has been deleted |
|
| 46 | */ |
||
| 47 | public static function cleanUpDir($dir) |
||
| 66 | } |
||
| 67 |