| @@ 38-45 (lines=8) @@ | ||
| 35 | * |
|
| 36 | * @return void |
|
| 37 | */ |
|
| 38 | public function testRuleDoesNotApplyToFunctionParameterNamedArgv() |
|
| 39 | { |
|
| 40 | $ruleSet = new RuleSet(); |
|
| 41 | $ruleSet->addRule(new UnusedFormalParameter()); |
|
| 42 | $ruleSet->setReport($this->getReportMock(0)); |
|
| 43 | ||
| 44 | $ruleSet->apply($this->getFunction()); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * testRuleDoesNotApplyToMethodParameterNamedArgv |
|
| @@ 52-59 (lines=8) @@ | ||
| 49 | * |
|
| 50 | * @return void |
|
| 51 | */ |
|
| 52 | public function testRuleDoesNotApplyToMethodParameterNamedArgv() |
|
| 53 | { |
|
| 54 | $ruleSet = new RuleSet(); |
|
| 55 | $ruleSet->addRule(new UnusedFormalParameter()); |
|
| 56 | $ruleSet->setReport($this->getReportMock(0)); |
|
| 57 | ||
| 58 | $ruleSet->apply($this->getMethod()); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||