/** * testRuleDoesNotApplyToAnySuperGlobalVariable * * @return void * @covers stdClass * @group phpmd * @group regression */ public function testRuleDoesNotApplyToAnyStaticLocalVariable() { $rule = new PHP_PMD_Rule_UnusedLocalVariable(); $rule->setReport($this->getReportMock(0)); $rule->apply($this->getMethod()); }
/** * testLocalVariableUsedInDoubleQuoteStringGetsNotReported * * @return void */ public function testLocalVariableUsedInDoubleQuoteStringGetsNotReported() { $rule = new PHP_PMD_Rule_UnusedLocalVariable(); $rule->setReport($this->getReportMock(0)); $rule->apply($this->getMethod()); }