예제 #1
0
파일: ParserTest.php 프로젝트: n2bh/phpmd
 /**
  * Tests that the metrics adapter does not delegate a node without source
  * code file to a registered rule-set.
  *
  * @return void
  */
 public function testAdapterDoesNotDelegateNonSourceFunctionNodeToRuleSet()
 {
     $adapter = new PHP_PMD_Parser($this->getPHPDependMock());
     $adapter->addRuleSet($this->getRuleSetMock());
     $adapter->setReport($this->getReportMock(0));
     $adapter->visitFunction($this->getPHPDependFunctionMock(null));
 }