/** * 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)); }