getNodeMetrics() публичный Метод

array( 'npath' => '17' )
public getNodeMetrics ( PDepend\Source\AST\ASTArtifact $artifact ) : array
$artifact PDepend\Source\AST\ASTArtifact
Результат array
 /**
  * Tests that the parser handles an interface within an instanceof operator
  * correct.
  *
  * @return void
  */
 public function testAnalyzerReturnsExpectedNPathValue()
 {
     $namespaces = self::parseCodeResourceForTest();
     $function = $namespaces->current()->getFunctions()->current();
     $analyzer = new NPathComplexityAnalyzer();
     $analyzer->setCache(new MemoryCacheDriver());
     $analyzer->analyze($namespaces);
     $this->assertEquals(array('npath' => '6'), $analyzer->getNodeMetrics($function));
 }