| Total Complexity | 4 | 
| Total Lines | 21 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 13 | abstract class BaseConfigTest extends TestCase  | 
            ||
| 14 | { | 
            ||
| 15 | final protected function createContainer(array|null $params = null): Container  | 
            ||
| 16 |     { | 
            ||
| 17 | $config = ContainerConfig::create()->withDefinitions($this->getCommonDefinitions($params));  | 
            ||
| 18 | |||
| 19 | return new Container($config);  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | final protected function getCommonDefinitions(array|null $params): array  | 
            ||
| 23 |     { | 
            ||
| 24 |         if ($params === null) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 25 | $params = $this->getParams();  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | return require dirname(__DIR__) . '/config/common.php';  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | final protected function getParams(): array  | 
            ||
| 34 | }  | 
            ||
| 35 | }  | 
            ||
| 36 |