Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function testGetUniqueFields() |
||
33 | { |
||
34 | $manager = $this->getManagerWithUnique(); |
||
35 | |||
36 | $unique = $manager->getUniqueFields(); |
||
|
|||
37 | self::assertSame( |
||
38 | [ |
||
39 | 'id_event_id_volunteer' => [ |
||
40 | 0 => 'id_event', |
||
41 | 1 => 'id_volunteer' |
||
42 | ], |
||
43 | 'hash' => [ |
||
44 | 0 => 'hash' |
||
45 | ] |
||
46 | ], |
||
47 | $unique |
||
48 | ); |
||
49 | } |
||
50 | |||
63 |
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.