| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function testGettingConfiguration() |
||
| 24 | { |
||
| 25 | include "test-skeleton/module/Master/Module.php"; |
||
| 26 | |||
| 27 | $module = ModuleFactory::create("Master", [ |
||
|
|
|||
| 28 | "config" => 'test-skeleton/module/Master/config/config.php', |
||
| 29 | ]); |
||
| 30 | |||
| 31 | $this->assertSame( |
||
| 32 | 'test-skeleton/module/Master/config/config.php', |
||
| 33 | $module->getConfigFile() |
||
| 34 | ); |
||
| 35 | |||
| 36 | $this->assertSame(["baz" => "foo"], $module->getConfig()); |
||
| 37 | } |
||
| 39 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.