| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function testAllTheModulesGot11Players() |
||
| 16 | { |
||
| 17 | $modules = \App\Lib\Helpers\Config::get('modules.modules', "api/"); |
||
| 18 | $this->assertNotEmpty($modules); |
||
| 19 | foreach ($modules as $key => $module) { |
||
| 20 | $this->assertNotEmpty($module["roles"]); |
||
| 21 | $count = 0; |
||
| 22 | foreach ($module["roles"] as $roleNum) { |
||
| 23 | $count += $roleNum; |
||
| 24 | } |
||
| 25 | $this->assertTrue(11 === $count, "Not correct Players for $key"); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 90 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.