1 | <?php |
||
27 | class RuleSetTest extends AbstractTest |
||
28 | { |
||
29 | /** |
||
30 | * testGetRuleByNameReturnsNullWhenNoMatchingRuleExists |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function testGetRuleByNameReturnsNullWhenNoMatchingRuleExists() |
||
39 | |||
40 | /** |
||
41 | * testGetRuleByNameReturnsMatchingRuleInstance |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | public function testGetRuleByNameReturnsMatchingRuleInstance() |
||
52 | |||
53 | /** |
||
54 | * testApplyNotInvokesRuleWhenSuppressAnnotationExists |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | public function testApplyNotInvokesRuleWhenSuppressAnnotationExists() |
||
66 | |||
67 | /** |
||
68 | * testApplyInvokesRuleWhenStrictModeIsSet |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | public function testApplyInvokesRuleWhenStrictModeIsSet() |
||
83 | |||
84 | /** |
||
85 | * Creates a rule set instance with a variable amount of appended rule |
||
86 | * objects. |
||
87 | * |
||
88 | * @return \PHPMD\AbstractRule |
||
89 | */ |
||
90 | private function createRuleSetFixture() |
||
100 | } |
||
101 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: