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 configwillcasttonullifkeynotspecified |
||
23 | */ |
||
24 | public function testConfigHelperWillCastToNullIfConfigKeyIsNotSpecified() |
||
29 | |||
30 | /** |
||
31 | * @group Helpers |
||
32 | * @group Config |
||
33 | * @group configwillcasttonull |
||
34 | */ |
||
35 | public function testConfigHelperWillCastToNullIfConfigKeyIsNotThere() |
||
40 | /** |
||
41 | * @group Helpers |
||
42 | * @group Config |
||
43 | * @group configwillcasttonulliffiledoesnotexist |
||
44 | */ |
||
45 | public function testConfigHelperWillCastToNullIfConfigFileDoesNotExist() |
||
50 | |||
51 | |||
52 | } |
||
53 |
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.