/**
  * {@inheritdoc}
  */
 protected function checkNodeImage(PHP_PMD_AbstractNode $node)
 {
     $excludedVariables = explode('|', $this->getStringProperty('excludeVariables'));
     if (!in_array($node->getImage(), $excludedVariables)) {
         parent::checkNodeImage($node);
     }
 }
 /**
  * testRuleAppliesToIdenticalVariablesInDifferentContextsSeveralTimes
  *
  * @return void
  */
 public function testRuleAppliesToIdenticalVariablesInDifferentContextsSeveralTimes()
 {
     $rule = new PHP_PMD_Rule_Naming_ShortVariable();
     $rule->addProperty('minimum', 3);
     $rule->setReport($this->getReportMock(2));
     $class = $this->getClass();
     $rule->apply($class);
     foreach ($class->getMethods() as $method) {
         $rule->apply($method);
     }
 }
 /**
  * testRuleNotAppliesToVariablesFromExceptionsList
  *
  * @return void
  */
 public function testRuleNotAppliesToVariablesFromExceptionsList()
 {
     $rule = new PHP_PMD_Rule_Naming_ShortVariable();
     $rule->addProperty('minimum', 3);
     $rule->addProperty('exceptions', 'id');
     $rule->setReport($this->getReportMock(0));
     $rule->apply($this->getClass());
 }