| Conditions | 6 |
| Paths | 2 |
| Total Lines | 28 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | protected function setUp(): void |
||
| 27 | { |
||
| 28 | parent::setUp(); |
||
| 29 | |||
| 30 | if (! static::$booted) { |
||
| 31 | $this->resetApplication(); |
||
| 32 | |||
| 33 | Hyde::macro('touch', function (string|array $path) { |
||
| 34 | if (is_array($path)) { |
||
|
|
|||
| 35 | foreach ($path as $p) { |
||
| 36 | touch(Hyde::path($p)); |
||
| 37 | } |
||
| 38 | } else { |
||
| 39 | return touch(Hyde::path($path)); |
||
| 40 | } |
||
| 41 | }); |
||
| 42 | |||
| 43 | Hyde::macro('unlink', function (string|array $path) { |
||
| 44 | if (is_array($path)) { |
||
| 45 | foreach ($path as $p) { |
||
| 46 | unlink(Hyde::path($p)); |
||
| 47 | } |
||
| 48 | } else { |
||
| 49 | return unlink(Hyde::path($path)); |
||
| 50 | } |
||
| 51 | }); |
||
| 52 | |||
| 53 | static::$booted = true; |
||
| 54 | } |
||
| 80 |