Total Complexity | 5 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class SubsiteStateTest extends SapphireTest |
||
13 | { |
||
14 | |||
15 | public function testIsApplicable() |
||
16 | { |
||
17 | $state = new SubsiteState(); |
||
18 | |||
19 | $this->assertFalse($state->stateIsApplicable(0)); |
||
20 | } |
||
21 | |||
22 | public function testSetDefaultState() |
||
23 | { |
||
24 | $state = new SubsiteState(); |
||
25 | |||
26 | $this->assertNull($state->setDefaultState(0)); |
||
1 ignored issue
–
show
|
|||
27 | } |
||
28 | |||
29 | public function testCurrentState() |
||
30 | { |
||
31 | $state = new SubsiteState(); |
||
32 | |||
33 | $this->assertNull($state->currentState()); |
||
34 | } |
||
35 | |||
36 | public function testActivateState() |
||
42 | } |
||
43 | |||
44 | public function testUpdateQuery() |
||
55 | } |
||
56 | } |
||
57 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.