| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testGettingConfiguration() |
||
| 25 | { |
||
| 26 | include "test-skeleton/module/Master/Module.php"; |
||
| 27 | |||
| 28 | $module = ModuleFactory::create("Master", [ |
||
|
|
|||
| 29 | "config" => 'test-skeleton/module/Master/config/config.php' |
||
| 30 | ]); |
||
| 31 | |||
| 32 | $this->assertSame( |
||
| 33 | 'test-skeleton/module/Master/config/config.php', |
||
| 34 | $module->getConfigFile() |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->assertSame(["baz" => "foo"], $module->getConfig()); |
||
| 38 | } |
||
| 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.