1 | <?php |
||
18 | class HandleCommandVoterTest extends TestCase |
||
19 | { |
||
20 | /** |
||
21 | * The decision manager mock. |
||
22 | */ |
||
23 | private $decisionManager; |
||
24 | |||
25 | /** |
||
26 | * Set up. |
||
27 | */ |
||
28 | public function setUp() |
||
32 | |||
33 | /** |
||
34 | * Tests the vote method. |
||
35 | * |
||
36 | * @param type $attribute |
||
37 | * @param type $subject |
||
38 | * @param type $decision |
||
39 | * @param type $default |
||
|
|||
40 | * @param type $mapping |
||
41 | * @param type $expected |
||
42 | * |
||
43 | * @dataProvider provideTestVoteData |
||
44 | */ |
||
45 | public function testVote($attribute, $subject, $decision, $mapping, $expected) |
||
53 | |||
54 | /** |
||
55 | * Gets the testdata for the vote test. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | public function provideTestVoteData() |
||
72 | } |
||
73 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.