| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 7 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php  | 
            ||
| 30 | public static function setUpBeforeClass()  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 31 |     { | 
            ||
| 32 | static::$projectId = (int) $_SERVER['PROJECT_ID'];  | 
            ||
| 33 | static::$merchantId = (int) $_SERVER['MERCHANT_ID'];  | 
            ||
| 34 | static::$userId = $_SERVER['USER_ID'];  | 
            ||
| 35 | static::$xsollaClient = XsollaClientHelper::getXsollaClient(static::$merchantId, $_SERVER['API_KEY']);  | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 | 
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: