| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function benchWarmParentItemAccess(array $params) |
||
| 60 | { |
||
| 61 | $child = $this->child; |
||
| 62 | $parentLevel = $child['idLevel'] - 1; |
||
| 63 | $parent = $child->xpath('preceding-sibling::Item[@idLevel="' . $parentLevel . '"][1]')[0]; |
||
| 64 | |||
| 65 | $this->assertSame($params['parent'], (string)$parent['id']); |
||
| 66 | } |
||
| 67 | |||
| 76 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.