| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait TestDirectoryTrait |
||
| 10 | { |
||
| 11 | private function createTestDirectory(): void |
||
| 12 | { |
||
| 13 | $dateTimeFolderName = date('Ymd_His'); |
||
| 14 | $random = rand(10000, 99999); |
||
| 15 | $testDirectory = __DIR__."/../scratchpad/{$dateTimeFolderName}{$random}"; |
||
| 16 | $this->fileSystem->mkdir($testDirectory); |
||
| 17 | $cwd = getcwd(); |
||
| 18 | $this->assertNotFalse($cwd); |
||
|
|
|||
| 19 | $this->projectRoot = new ProjectRoot($testDirectory, $cwd); |
||
| 20 | } |
||
| 21 | |||
| 22 | private function removeTestDirectory(): void |
||
| 25 | } |
||
| 26 | } |
||
| 27 |