/**
  * testRuleSetInvokesRuleForClassInstance
  *
  * @return void
  */
 public function testRuleSetInvokesRuleForClassInstance()
 {
     $rule = new PHP_PMD_Rule_ExcessivePublicCount();
     $rule->addProperty('minimum', 3);
     $class = $this->getClass();
     $class->setMetrics(array('cis' => 4));
     $ruleSet = new PHP_PMD_RuleSet();
     $ruleSet->addRule($rule);
     $ruleSet->setReport($this->getReportMock(1));
     $ruleSet->apply($class);
 }
 /**
  * testRuleAppliesToClassesWithMorePublicMembersThanThreshold
  *
  * @return void
  */
 public function testRuleAppliesToClassesWithMorePublicMembersThanThreshold()
 {
     $rule = new PHP_PMD_Rule_ExcessivePublicCount();
     $rule->setReport($this->getReportMock(1));
     $rule->addProperty('minimum', '23');
     $rule->apply($this->getClassMock('cis', 42));
 }