Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | public function testCorrectDisplayModuleDescriptionRole() |
||
34 | { |
||
35 | $modules = \App\Lib\Helpers\Config::get('modules.modules', "api/"); |
||
36 | $this->assertNotEmpty($modules); |
||
37 | $roles = \App\Lib\Helpers\Config::get('modules.roles', "api/"); |
||
38 | $rolesKeys = array_keys($roles); |
||
39 | |||
40 | foreach ($modules as $key => $module) { |
||
41 | echo "\nto play $key\n"; |
||
42 | $this->assertNotEmpty($module["roles"]); |
||
43 | foreach ($module["roles"] as $index => $playNum) { |
||
44 | if ($playNum != 0) |
||
45 | echo $playNum . " " . $roles[$rolesKeys[$index]]["description"] . " "; |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 | |||
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.