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