| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | abstract class PluginTestCase extends TestCase |
||
| 11 | { |
||
| 12 | private const BASE_DIRECTORY = __DIR__ . '/../Environment'; |
||
| 13 | |||
| 14 | private static array $configs = []; |
||
| 15 | |||
| 16 | protected function registerConfig(string $name): void |
||
| 17 | { |
||
| 18 | if ((self::$configs[$name] ?? []) !== []) { |
||
| 19 | return; |
||
| 20 | } |
||
| 21 | self::$configs[$name] = require Builder::path($name, self::BASE_DIRECTORY); |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function getFromConfig(string $config, string $name) |
||
| 27 | } |
||
| 28 | } |
||
| 29 |