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