/** * Tests that the metrics adapter does not delegate a node without source * code file to a registered rule-set. * * @return void */ public function testAdapterDoesNotDelegateNonSourceMethodNodeToRuleSet() { $adapter = new PHP_PMD_Parser($this->getPHPDependMock()); $adapter->addRuleSet($this->getRuleSetMock()); $adapter->setReport($this->getReportMock(0)); $adapter->visitMethod($this->getPHPDependMethodMock(null)); }