1 | <?php |
||
6 | class ConfigTest extends PHPUnit_Framework_TestCase |
||
7 | { |
||
8 | /** |
||
9 | * @group Helpers |
||
10 | * @group Config |
||
11 | */ |
||
12 | public function testConfigHelperWillLoadtheRightFile() |
||
18 | |||
19 | /** |
||
20 | * @group Helpers |
||
21 | * @group Config |
||
22 | * @group configwillcasttonull |
||
23 | */ |
||
24 | public function testConfigHelperWillCastToNullIfConfigKeyIsNotThere() |
||
29 | /** |
||
30 | * @group Helpers |
||
31 | * @group Config |
||
32 | * @group configwillcasttonulliffiledoesnotexist |
||
33 | */ |
||
34 | public function testConfigHelperWillCastToNullIfConfigFileDoesNotExist() |
||
39 | |||
40 | |||
41 | } |
||
42 |
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.