| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function setUp(): void |
||
| 40 | { |
||
| 41 | parent::setUp(); |
||
| 42 | |||
| 43 | // Cleans up whatever was there before. Indeed upon failure PHPUnit fails to trigger the `tearDown()` method |
||
| 44 | // and as a result some temporary files may still remain. |
||
| 45 | remove(str_replace('\\', '/', realpath(sys_get_temp_dir())).'/box'); |
||
| 46 | |||
| 47 | $this->cwd = getcwd(); |
||
| 48 | $this->tmp = make_tmp_dir('box', __CLASS__); |
||
| 49 | |||
| 50 | chdir($this->tmp); |
||
| 51 | } |
||
| 88 |