| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 5 | 
| Code Lines | 3 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | public function testConfigFilesFromAlias()  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 20 |     { | 
            ||
| 21 | $_SERVER['HTTP_HOST'] = 'localhost';  | 
            ||
| 22 | $this->assertCount(2, DomainService::configFiles(__DIR__.'/assets'));  | 
            ||
| 23 | }  | 
            ||
| 24 | }  | 
            ||
| 25 | 
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: