| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class PharSupport |
||
| 23 | { |
||
| 24 | /** @var array<string, bool> */ |
||
| 25 | protected static array $mocks = []; |
||
| 26 | |||
| 27 | public static function mock(string $method, bool $value): void |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function clearMocks(): void |
||
| 33 | { |
||
| 34 | self::$mocks = []; |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function running(): bool |
||
| 38 | { |
||
| 39 | return self::$mocks['running'] ?? Phar::running() !== ''; |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function hasVendorDirectory(): bool |
||
| 45 | } |
||
| 46 | |||
| 47 | public static function vendorPath(string $path = '', string $package = 'framework'): string |
||
| 50 | } |
||
| 51 | } |
||
| 52 |